diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 15:01:34 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-29 15:01:34 -0500 |
| commit | ceabd82ac8e796249feacf39c836034ed5e11c6d (patch) | |
| tree | e446d471a0eaf4ed7ac67e878ce4fb02334a2acb /src/kernel/FirmwareKit/EFI/API.h | |
| parent | 0376382a848ef5ebbb0e02428c9d1df8a099d8b4 (diff) | |
chore: source code review and fixes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/FirmwareKit/EFI/API.h')
| -rw-r--r-- | src/kernel/FirmwareKit/EFI/API.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/FirmwareKit/EFI/API.h b/src/kernel/FirmwareKit/EFI/API.h index 24fceb2b..1d087367 100644 --- a/src/kernel/FirmwareKit/EFI/API.h +++ b/src/kernel/FirmwareKit/EFI/API.h @@ -31,7 +31,7 @@ EXTERN_C void rt_halt(); namespace Boot { /// @brief Halt and clear interrut flag on x86. /// @return -inline Void Stop() noexcept { +inline Void Stop() { while (YES) { rt_cli(); rt_halt(); @@ -42,13 +42,13 @@ inline Void Stop() noexcept { @brief Exit EFI API to let the OS load correctly. Bascially frees everything we have in the EFI side. */ -inline Void ExitBootServices(UInt64 MapKey, EfiHandlePtr ImageHandle) noexcept { +inline Void ExitBootServices(UInt64 MapKey, EfiHandlePtr ImageHandle) { if (!ST) return; ST->BootServices->ExitBootServices(ImageHandle, MapKey); } -inline UInt32 Platform() noexcept { +inline UInt32 Platform() { return kPeMachineAMD64; } @@ -57,7 +57,7 @@ inline UInt32 Platform() noexcept { * @param ErrorCode error code to be print. * @param Reason reason to be print. */ -inline void ThrowError(const EfiCharType* ErrorCode, const EfiCharType* Reason) noexcept { +inline void ThrowError(const EfiCharType* ErrorCode, const EfiCharType* Reason) { ST->ConOut->OutputString(ST->ConOut, L"\r*** STOP ***\r"); ST->ConOut->OutputString(ST->ConOut, L"*** ERROR: "); @@ -72,7 +72,7 @@ inline void ThrowError(const EfiCharType* ErrorCode, const EfiCharType* Reason) } } // namespace Boot -inline void fw_init_efi(EfiSystemTable* SystemTable) noexcept { +inline void fw_init_efi(EfiSystemTable* SystemTable) { if (!SystemTable) return; ST = SystemTable; |
