Skip to content

Commit 80661e2

Browse files
committed
loader/efi: fix non-x86 build
Pointy hat to: vexeduxr Reported by: Bakul Shah
1 parent 275f7d7 commit 80661e2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

stand/efi/loader/bootinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
static int
6868
bi_getboothowto(char *kargs)
6969
{
70-
#ifdef EFI
70+
#if defined(EFI) && (defined(__i386__) || defined(__amd64__))
7171
const char *tmp;
7272
int speed, port;
7373
char buf[50];

stand/efi/loader/copy.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,9 @@ efi_check_space(vm_offset_t end)
405405
return (true);
406406
}
407407

408+
#if defined(__amd64__) || defined(__i386__)
408409
before_staging:
410+
#endif
409411
/* Try allocating space before the previous allocation */
410412
if (staging < nr_pages * EFI_PAGE_SIZE)
411413
goto expand;

0 commit comments

Comments
 (0)