diff options
| author | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-25 16:12:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlalelmahrouss@icloud.com> | 2024-02-25 16:12:36 +0100 |
| commit | 2bd2e28868d50a2f3ced8b1bfea68216ed35622a (patch) | |
| tree | 4bf376821d13f005d72cbf5feca5cb1f18ae60cd /Private/FirmwareKit | |
| parent | 9be51d883414584db0926ab854d6026e1785048b (diff) | |
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 <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/FirmwareKit')
| -rw-r--r-- | Private/FirmwareKit/EFI/API.hxx | 10 |
1 files changed, 8 insertions, 2 deletions
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 <FirmwareKit/EFI.hxx> +#include <FirmwareKit/EFI/EFI.hxx> #include <KernelKit/MSDOS.hpp> #include <KernelKit/PE.hpp> 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. |
