summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/FirmwareKit/EFI/API.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-09 21:36:40 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-09 21:36:40 +0100
commit0f8285983883048dbf19734c588473725c66f367 (patch)
treed9ccd3b55cc31b1a9e1178320bf602936742a6ff /dev/Kernel/FirmwareKit/EFI/API.h
parent0ea1827a392411eafae2ee9ebbfddbae92958f73 (diff)
Add NS.h file for CoreBoot, and open command.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/FirmwareKit/EFI/API.h')
-rw-r--r--dev/Kernel/FirmwareKit/EFI/API.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/dev/Kernel/FirmwareKit/EFI/API.h b/dev/Kernel/FirmwareKit/EFI/API.h
index 4cf60df4..2634662d 100644
--- a/dev/Kernel/FirmwareKit/EFI/API.h
+++ b/dev/Kernel/FirmwareKit/EFI/API.h
@@ -36,10 +36,10 @@ namespace EFI
/// @return
inline Void Stop() noexcept
{
- while (1)
+ while (YES)
{
- rt_hlt();
rt_cli();
+ rt_hlt();
}
}
@@ -55,14 +55,6 @@ Bascially frees everything we have in the EFI side.
ST->BootServices->ExitBootServices(ImageHandle, MapKey);
}
- enum
- {
- kPartEPM,
- kPartGPT,
- kPartMBR,
- kPartCnt,
- };
-
inline UInt32 Platform() noexcept
{
return kPeMachineAMD64;
@@ -78,10 +70,10 @@ Bascially frees everything we have in the EFI side.
{
ST->ConOut->OutputString(ST->ConOut, L"\r*** STOP ***\r");
- ST->ConOut->OutputString(ST->ConOut, L"*** Error: ");
+ ST->ConOut->OutputString(ST->ConOut, L"*** ERROR: ");
ST->ConOut->OutputString(ST->ConOut, ErrorCode);
- ST->ConOut->OutputString(ST->ConOut, L", Reason: ");
+ ST->ConOut->OutputString(ST->ConOut, L" ***\r *** REASON: ");
ST->ConOut->OutputString(ST->ConOut, Reason);
ST->ConOut->OutputString(ST->ConOut, L" ***\r");