loader/efi: fix non-x86 build
Pointy hat to: vexeduxr Reported by: Bakul Shah
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user