stand/lua: Don't set ACPI off just because we can't detect it.

This should unbreak EFI/!i386 cases.

Reported by:	Peter Lei <peter.lei@ieee.org>
This commit is contained in:
Kyle Evans 2018-02-20 02:03:29 +00:00
parent 06220fa737
commit 6f412147b2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329614

View File

@ -230,5 +230,11 @@ function core.shallowCopyTable(tbl)
return new_tbl;
end
core.setACPI(core.getACPIPresent(false));
-- On i386, hint.acpi.0.rsdp will be set before we're loaded. On !i386, it will
-- generally be set upon execution of the kernel. Because of this, we can't (or
-- don't really want to) detect/disable ACPI on !i386 reliably. Just set it
-- enabled if we detect it and leave well enough alone if we don't.
if (core.getACPIPresent(false)) then
core.setACPI(true);
end
return core;