:: commit b583e7294c134f05575cc5bccce021e1745787c0

mintsuki <mintsuki@protonmail.com> — 2022-08-25 19:53

parents: 3a2b335e42

entry/uefi: Only perform 4GiB check if on x86_64

diff --git a/common/entry.s3.c b/common/entry.s3.c
index c527c6d1..3a112b94 100644
--- a/common/entry.s3.c
+++ b/common/entry.s3.c
@@ -69,9 +69,11 @@ noreturn void uefi_entry(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
 
     init_gdt();
 
+#if defined (__x86_64__)
     if ((uintptr_t)__image_base > 0x100000000) {
         panic(false, "Limine does not support being loaded above 4GiB");
     }
+#endif
 
     disk_create_index();
 
tab: 248 wrap: offon