Page MenuHomeFreeBSD

Abstract out SMBIOS -- move it to libsa
ClosedPublic

Authored by imp on Feb 13 2020, 4:10 AM.
Tags
None
Referenced Files
F103488273: D23660.diff
Mon, Nov 25, 4:16 PM
Unknown Object (File)
Sun, Oct 27, 3:13 PM
Unknown Object (File)
Oct 9 2024, 8:12 PM
Unknown Object (File)
Sep 11 2024, 8:48 PM
Unknown Object (File)
Sep 11 2024, 8:48 PM
Unknown Object (File)
Sep 11 2024, 8:48 PM
Unknown Object (File)
Sep 11 2024, 8:35 PM
Unknown Object (File)
Sep 8 2024, 4:30 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.