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
F167789274: D14446.diff
Mon, Aug 24, 1:34 PM
Unknown Object (File)
Mon, Aug 24, 9:00 AM
Unknown Object (File)
Sat, Aug 22, 4:31 AM
Unknown Object (File)
Tue, Aug 18, 5:34 PM
Unknown Object (File)
Sat, Aug 15, 7:53 PM
Unknown Object (File)
Sat, Aug 15, 7:53 PM
Unknown Object (File)
Sat, Aug 15, 7:53 PM
Unknown Object (File)
Fri, Aug 14, 9:11 PM
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.