mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
arm64: fix build without FDT
static_kenv is only used under `FDT`, and `try_load_dtb` is only defined with `FDT`. Reviewed by: andrew, imp, manu Differential Revision: https://reviews.freebsd.org/D36791
This commit is contained in:
parent
23c318ed86
commit
78f3c734a5
|
@ -768,7 +768,9 @@ initarm(struct arm64_bootparams *abp)
|
|||
update_special_regs(0);
|
||||
|
||||
link_elf_ireloc(kmdp);
|
||||
#ifdef FDT
|
||||
try_load_dtb(kmdp);
|
||||
#endif
|
||||
|
||||
efi_systbl_phys = MD_FETCH(kmdp, MODINFOMD_FW_HANDLE, vm_paddr_t);
|
||||
|
||||
|
|
|
@ -53,9 +53,10 @@ __FBSDID("$FreeBSD$");
|
|||
|
||||
extern int *end;
|
||||
static char *loader_envp;
|
||||
static char static_kenv[4096];
|
||||
|
||||
#ifdef FDT
|
||||
static char static_kenv[4096];
|
||||
|
||||
#define CMDLINE_GUARD "FreeBSD:"
|
||||
#define LBABI_MAX_COMMAND_LINE 512
|
||||
static char linux_command_line[LBABI_MAX_COMMAND_LINE + 1];
|
||||
|
|
Loading…
Reference in a new issue