loader/efi: fix non-x86 build

Pointy hat to:	vexeduxr
Reported by:	Bakul Shah
This commit is contained in:
Ahmad Khalifa
2025-09-10 10:43:27 +03:00
parent 275f7d72ff
commit 80661e2153
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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];
+2
View File
@@ -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;