]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Create ptov() function.
authorWarner Losh <imp@FreeBSD.org>
Thu, 20 Feb 2020 00:46:16 +0000 (00:46 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 8 Oct 2021 02:42:05 +0000 (21:42 -0500)
commit19f8884afeb822d3cde7915dd1f4e231ffc443b3
tree102edfa8b2f53b7ecb1632dab279c34df9c6606c
parent90e5f7232f3d38b4fd9620381317c25226b73201
Create ptov() function.

Create a ptov() function. It's basically the same as the btx PTOV
macro, but works everywhere. smbios needs this to translate addresses,
but the translation differs between BIOS booting and EFI booting. Make
it a function so one smbios.o can be used everywhere. Provide
definitions for it in the two loaders affected.

(cherry picked from commit ed2a65769a5d04fcfc2acff3fa11d6b69394fd88)
stand/efi/loader/main.c
stand/i386/libi386/smbios.c
stand/i386/loader/main.c
stand/libsa/stand.h