Rename efi_systbl to efi_systbl_phys, the variable contains the

physical address of the EFI System Table.  Add _KERNEL guard around
its declaration in sys/efi.h.

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2016-09-21 10:55:28 +00:00
parent 559a7b209a
commit bd0892ffd4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306092
2 changed files with 6 additions and 3 deletions

View file

@ -188,7 +188,7 @@ struct msgbuf *msgbufp;
* Physical address of the EFI System Table. Stashed from the metadata hints
* passed into the kernel and used by the EFI code to call runtime services.
*/
vm_paddr_t efi_systbl;
vm_paddr_t efi_systbl_phys;
/* Intel ICH registers */
#define ICH_PMBASE 0x400
@ -1501,7 +1501,7 @@ native_parse_preload_data(u_int64_t modulep)
ksym_end = MD_FETCH(kmdp, MODINFOMD_ESYM, uintptr_t);
db_fetch_ksymtab(ksym_start, ksym_end);
#endif
efi_systbl = MD_FETCH(kmdp, MODINFOMD_FW_HANDLE, vm_paddr_t);
efi_systbl_phys = MD_FETCH(kmdp, MODINFOMD_FW_HANDLE, vm_paddr_t);
return (kmdp);
}

View file

@ -163,5 +163,8 @@ struct efi_systbl {
uint64_t st_cfgtbl;
};
extern vm_paddr_t efi_systbl;
#ifdef _KERNEL
extern vm_paddr_t efi_systbl_phys;
#endif /* _KERNEL */
#endif /* _SYS_EFI_H_ */