-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Also use our own fork of gnu-efi.
- Loading branch information
Showing
7 changed files
with
49 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "gnu-efi"] | ||
path = gnu-efi | ||
url = git://git.code.sf.net/p/gnu-efi/code | ||
url = https://github.com/pbatard/gnu-efi.git | ||
ignore = dirty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule gnu-efi
updated
from b1c7a1 to 8fac99
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
/* | ||
* UEFI:SIMPLE - UEFI development made easy | ||
* Copyright ©️ 2014-2021 Pete Batard <[email protected]> - Public Domain | ||
* Copyright ©️ 2014-2023 Pete Batard <[email protected]> - Public Domain | ||
* See COPYING for the full licensing terms. | ||
*/ | ||
#include <efi.h> | ||
#include <efilib.h> | ||
#include <libsmbios.h> | ||
|
||
#if defined(_M_X64) || defined(__x86_64__) | ||
static CHAR16* Arch = L"x64"; | ||
static CHAR16* ArchName = L"64-bit x86"; | ||
static CHAR16* ArchName = L"x86 64-bit"; | ||
#elif defined(_M_IX86) || defined(__i386__) | ||
static CHAR16* Arch = L"ia32"; | ||
static CHAR16* ArchName = L"32-bit x86"; | ||
static CHAR16* ArchName = L"x86 32-bit"; | ||
#elif defined (_M_ARM64) || defined(__aarch64__) | ||
static CHAR16* Arch = L"aa64"; | ||
static CHAR16* ArchName = L"64-bit ARM"; | ||
static CHAR16* ArchName = L"ARM 64-bit"; | ||
#elif defined (_M_ARM) || defined(__arm__) | ||
static CHAR16* Arch = L"arm"; | ||
static CHAR16* ArchName = L"32-bit ARM"; | ||
static CHAR16* ArchName = L"ARM 32-bit"; | ||
#elif defined (_M_RISCV64) || (defined(__riscv) && (__riscv_xlen == 64)) | ||
static CHAR16* ArchName = L"RISC-V 64-bit"; | ||
#else | ||
# error Unsupported architecture | ||
#endif | ||
|
@@ -112,7 +110,7 @@ EFI_STATUS efi_main(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) | |
* %E Set output attribute to error | ||
* %r Human readable version of a status code | ||
*/ | ||
Print(L"\n%H*** UEFI Simple ***%N\n\n"); | ||
Print(L"\n%H*** UEFI Simple (%s) ***%N\n\n", ArchName); | ||
|
||
PrintSystemInfo(); | ||
|
||
|