diff options
| author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2018-01-19 17:46:31 +0000 |
|---|---|---|
| committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2018-01-19 17:46:31 +0000 |
| commit | 9a8196ce190e6a13ae50849b3384496e7aa57b0c (patch) | |
| tree | 37d438ae0cb7467f2554251b0722642b637a7008 /sys/dev/efidev | |
| parent | b3327f62f0cdabe91d36959001a065a1c3eb3d85 (diff) | |
Notes
Diffstat (limited to 'sys/dev/efidev')
| -rw-r--r-- | sys/dev/efidev/efirt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/efidev/efirt.c b/sys/dev/efidev/efirt.c index 9f54494d68fa..381da270dc4f 100644 --- a/sys/dev/efidev/efirt.c +++ b/sys/dev/efidev/efirt.c @@ -114,6 +114,11 @@ efi_init(void) printf("EFI systbl not available\n"); return (0); } + if (!PMAP_HAS_DMAP) { + if (bootverbose) + printf("EFI systbl requires direct map\n"); + return (0); + } efi_systbl = (struct efi_systbl *)PHYS_TO_DMAP(efi_systbl_phys); if (efi_systbl->st_hdr.th_sig != EFI_SYSTBL_SIG) { efi_systbl = NULL; |
