Page MenuHomeFreeBSD

liblua: Add loader.machine and loader.machine_arch properties
ClosedPublic

Authored by kevans on Feb 20 2018, 3:10 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 9 2024, 2:44 AM
Unknown Object (File)
Mar 9 2024, 2:43 AM
Unknown Object (File)
Mar 9 2024, 2:43 AM
Unknown Object (File)
Mar 9 2024, 2:31 AM
Unknown Object (File)
Jan 8 2024, 5:27 AM
Unknown Object (File)
Dec 20 2023, 2:42 AM
Unknown Object (File)
Jun 3 2023, 1:42 AM
Unknown Object (File)
May 14 2023, 6:21 AM
Subscribers
None

Details

Summary

Provisioned from MACHINE/MACHINE_ARCH on the system, expose loader.machine and loader.machine_arch respectively.

These may be used to hide ACPI option on non-applicable archs.

Diff Detail

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

Event Timeline

These are fine, but I wonder if it might not be better to have a MD module in the loader that exports attributes of the architecture.... If we use this for more than a few things, we should consider that path instead...

This revision is now accepted and ready to land.Feb 20 2018, 5:38 PM
In D14446#302859, @imp wrote:

These are fine, but I wonder if it might not be better to have a MD module in the loader that exports attributes of the architecture.... If we use this for more than a few things, we should consider that path instead...

Right, I've not yet found any machdep things that I care about in lua-land (other than being able to discriminate based on machine/machine_arch =)), so I think this is a good path to go on for the moment and we can change course if we come up with others.

This revision was automatically updated to reflect the committed changes.