aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmad Khalifa <vexeduxr@FreeBSD.org>2025-09-10 07:43:27 +0000
committerAhmad Khalifa <vexeduxr@FreeBSD.org>2025-09-10 07:48:20 +0000
commit80661e2153d2bc916444cb3be8aa50d0d110ad57 (patch)
treecf6eb47dd4e6fd6083ebf88a1d1ec305adc48a76
parent275f7d72ff6a71bbe46b4282a88f0ea9a24be22a (diff)
loader/efi: fix non-x86 build
Pointy hat to: vexeduxr Reported by: Bakul Shah
-rw-r--r--stand/efi/loader/bootinfo.c2
-rw-r--r--stand/efi/loader/copy.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/stand/efi/loader/bootinfo.c b/stand/efi/loader/bootinfo.c
index 3230200e9be5..7931622c2df6 100644
--- a/stand/efi/loader/bootinfo.c
+++ b/stand/efi/loader/bootinfo.c
@@ -67,7 +67,7 @@
static int
bi_getboothowto(char *kargs)
{
-#ifdef EFI
+#if defined(EFI) && (defined(__i386__) || defined(__amd64__))
const char *tmp;
int speed, port;
char buf[50];
diff --git a/stand/efi/loader/copy.c b/stand/efi/loader/copy.c
index bf1a7a075400..7452726565ad 100644
--- a/stand/efi/loader/copy.c
+++ b/stand/efi/loader/copy.c
@@ -405,7 +405,9 @@ efi_check_space(vm_offset_t end)
return (true);
}
+#if defined(__amd64__) || defined(__i386__)
before_staging:
+#endif
/* Try allocating space before the previous allocation */
if (staging < nr_pages * EFI_PAGE_SIZE)
goto expand;