mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-07 00:50:50 +00:00
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:
parent
559a7b209a
commit
bd0892ffd4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=306092
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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_ */
|
||||
|
|
Loading…
Reference in a new issue