From 94eb0e2ae2cb7808587a0a8fb911c796c5173cae Mon Sep 17 00:00:00 2001 From: mintsuki Date: Thu, 25 Aug 2022 21:53:48 +0200 Subject: [PATCH] entry/uefi: Only perform 4GiB check if on x86_64 --- common/entry.s3.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/entry.s3.c b/common/entry.s3.c index 24fa2f58..d10dc5fa 100644 --- a/common/entry.s3.c +++ b/common/entry.s3.c @@ -51,9 +51,11 @@ noreturn void uefi_entry(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) init_gdt(); #endif +#if defined (__x86_64__) if ((uintptr_t)__image_base > 0x100000000) { panic(false, "Limine does not support being loaded above 4GiB"); } +#endif disk_create_index();