freebsd-dev/sys/x86/acpica
Konstantin Belousov bd101a6648 Ensure that resume path on amd64 only accesses page tables for normal
operation after processor is configured to allow all required
features.

In particular, NX must be enabled in EFER, otherwise load of page
table element with nx bit set causes reserved bit page fault.  Since
malloc uses direct mapping for small allocations, in particular for
the suspension pcbs, and DMAP is nx after r316767, this commit tripped
fault on resume path.

Restore complete state of EFER while wakeup code is still executing
with custom page table, before calling resumectx, instead of trying to
guess which features might be needed before resumectx restored EFER on
its own.

Bisected and tested by:	trasz
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2017-05-15 20:52:43 +00:00
..
acpi_apm.c
acpi_wakeup.c Ensure that resume path on amd64 only accesses page tables for normal 2017-05-15 20:52:43 +00:00
madt.c Merge ACPICA 20160930. 2016-10-04 20:27:15 +00:00
OsdEnvironment.c Merge ACPICA 20160930. 2016-10-04 20:27:15 +00:00
srat.c - Remove 'struct vmmeter' from 'struct pcpu', leaving only global vmmeter 2017-04-17 17:34:47 +00:00