summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/FirmwareKit/EFI/API.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-29 15:09:24 -0500
committerGitHub <noreply@github.com>2025-11-29 15:09:24 -0500
commit20d9401703bff7241645c9883828ad10beae6fa7 (patch)
treee446d471a0eaf4ed7ac67e878ce4fb02334a2acb /src/kernel/FirmwareKit/EFI/API.h
parenta9019ecaaad76cb3569a6852dbc30c48c5436d1d (diff)
parentceabd82ac8e796249feacf39c836034ed5e11c6d (diff)
Merge pull request #91 from nekernel-org/dev
dev->stable
Diffstat (limited to 'src/kernel/FirmwareKit/EFI/API.h')
-rw-r--r--src/kernel/FirmwareKit/EFI/API.h10
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;