amd64: make efi_boot global

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D31121
This commit is contained in:
Konstantin Belousov 2021-07-22 19:22:21 +03:00
parent c8bae074d9
commit 6a3821369f
2 changed files with 4 additions and 1 deletions

View File

@ -222,6 +222,8 @@ struct mtx dt_lock; /* lock for GDT and LDT */
void (*vmm_resume_p)(void);
bool efi_boot;
static void
cpu_startup(dummy)
void *dummy;
@ -1604,7 +1606,6 @@ hammer_time(u_int64_t modulep, u_int64_t physfree)
struct region_descriptor r_gdt;
size_t kstack0_sz;
int late_console;
bool efi_boot;
TSRAW(&thread0, TS_ENTER, __func__, NULL);

View File

@ -55,6 +55,8 @@ extern int la57;
*/
extern char kernphys[];
extern bool efi_boot;
struct savefpu;
struct sysentvec;