efidev: Drop a quick note in about efi_cfgtbl/efi_runtime

There's no real annotation for it, so it's not immediately obvious to the
unfamiliar that these pointers are to locations in the EFI runtime map
unlike the system table pointer immediately above them.
This commit is contained in:
Kyle Evans 2018-03-23 02:45:09 +00:00
parent e76e77a972
commit 50da29d25b

View File

@ -57,6 +57,11 @@ __FBSDID("$FreeBSD$");
#include <vm/vm_map.h> #include <vm/vm_map.h>
static struct efi_systbl *efi_systbl; static struct efi_systbl *efi_systbl;
/*
* The following pointers point to tables in the EFI runtime service data pages.
* Care should be taken to make sure that we've properly entered the EFI runtime
* environment (efi_enter()) before dereferencing them.
*/
static struct efi_cfgtbl *efi_cfgtbl; static struct efi_cfgtbl *efi_cfgtbl;
static struct efi_rt *efi_runtime; static struct efi_rt *efi_runtime;