svn commit: r329614 - head/stand/lua
Kyle Evans
kevans at FreeBSD.org
Tue Feb 20 02:03:30 UTC 2018
Author: kevans
Date: Tue Feb 20 02:03:29 2018
New Revision: 329614
URL: https://svnweb.freebsd.org/changeset/base/329614
Log:
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 at ieee.org>
Modified:
head/stand/lua/core.lua
Modified: head/stand/lua/core.lua
==============================================================================
--- head/stand/lua/core.lua Tue Feb 20 00:34:42 2018 (r329613)
+++ head/stand/lua/core.lua Tue Feb 20 02:03:29 2018 (r329614)
@@ -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;
More information about the svn-src-all
mailing list