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)
Mon, Oct 6, 8:12 AM
Unknown Object (File)
Mon, Sep 29, 5:51 PM
Unknown Object (File)
Mon, Sep 22, 5:42 PM
Unknown Object (File)
Wed, Sep 17, 1:03 AM
Unknown Object (File)
Wed, Sep 17, 12:58 AM
Unknown Object (File)
Sep 8 2025, 2:23 PM
Unknown Object (File)
Sep 1 2025, 3:47 PM
Unknown Object (File)
Aug 29 2025, 11:11 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.