From 2bd2e28868d50a2f3ced8b1bfea68216ed35622a Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 25 Feb 2024 16:12:36 +0100 Subject: WiP: See below. - Reworking bootloader to adapt if kernel and programs are already here or not for HCoreLdr. - Working on IDT support for HCoreKrnl. - Add Award and Mahrouss Logic logo in recovery-mode for HCoreKrnl. - Working on reading .NewBoot section in HCoreLdr. Signed-off-by: Amlal El Mahrouss --- Private/FirmwareKit/EFI/API.hxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Private/FirmwareKit') diff --git a/Private/FirmwareKit/EFI/API.hxx b/Private/FirmwareKit/EFI/API.hxx index 8856c676..dcbb35cf 100644 --- a/Private/FirmwareKit/EFI/API.hxx +++ b/Private/FirmwareKit/EFI/API.hxx @@ -10,18 +10,24 @@ #ifndef __EFI_API__ #define __EFI_API__ -#include +#include #include #include inline EfiSystemTable *ST = nullptr; inline EfiBootServices *BS = nullptr; +extern "C" void rt_cli(); + namespace EFI { /** @brief Stop Execution of program. */ -Void Stop() noexcept; +inline Void Stop() noexcept { + while (1) { + rt_cli(); + } +} /** @brief Exit EFI API to let the OS load correctly. -- cgit v1.2.3