Page MenuHomeFreeBSD

Abstract out SMBIOS -- move it to libsa
ClosedPublic

Authored by imp on Feb 13 2020, 4:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 23 2024, 6:56 PM
Unknown Object (File)
Feb 23 2024, 6:56 PM
Unknown Object (File)
Feb 23 2024, 6:56 PM
Unknown Object (File)
Feb 23 2024, 3:56 PM
Unknown Object (File)
Dec 20 2023, 6:59 AM
Unknown Object (File)
Sep 21 2023, 10:00 AM
Unknown Object (File)
Jul 3 2023, 4:26 AM
Unknown Object (File)
Jul 3 2023, 4:26 AM
Subscribers

Details

Summary

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.

Move smbios.c to libsa.

smbios used to be an i386 only kinda weird quirk to the x86
architecture. But UEFI picked it up, dusted it off and now it's many
other locations. Make it base technology by moving it to libsa and
fixing up the compliation. The code has issues with unaligned access
still, but that will be addressed in a followup commit.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 20 2020, 12:46 AM
Closed by commit rS358135: Create ptov() function. (authored by imp). · Explain Why
This revision was automatically updated to reflect the committed changes.