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)
Fri, Jul 3, 8:04 PM
Unknown Object (File)
Fri, Jul 3, 10:32 AM
Unknown Object (File)
Fri, Jul 3, 5:14 AM
Unknown Object (File)
Wed, Jul 1, 10:00 PM
Unknown Object (File)
May 24 2026, 1:21 AM
Unknown Object (File)
May 24 2026, 1:20 AM
Unknown Object (File)
Apr 20 2026, 6:08 PM
Unknown Object (File)
Apr 12 2026, 11:49 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.