freebsd-skq/sys/i386/acpica
jhb 9c76956524 For no good reason I had assumed that ACPI table headers would be page
aligned (or at least not cross a page boundary).  However, it turns out
that on at least one machine one table header does cross a page boundary.
This caused problems with the MADT early probe as it uses the crash dump
map to load ACPI tables by loading the RSDT/XSDT into pages 1 ... N and
loading the header of each ACPI table header into page 0 looking for the
MADT.  However, if a table header crossed a page boundary, then page 1
would get trashed resulting in a panic.  Fix this by reserving the first
2 pages for ACPI table headers (headers are less than a page in size,
so 2 pages will be sufficient) and use pages 2 .. N for the RSDT and XSDT.

Note: amd64 should probably be simplified to just use pmap_mapbios()
for all these tables which will use the direct map and not need the
crash dump hack.

MFC after:	5 days
Tested on:	i386
Reported by:	Pete French  petefrench of ticketswitch.com
2008-01-31 16:51:43 +00:00
..
acpi_machdep.c Now that we have a function that can be called from a cdevsw close() 2007-07-07 17:54:33 +00:00
acpi_wakecode.S Minor tweaks to the resume code. Previous commit reverted alignment back 2006-06-10 08:20:03 +00:00
acpi_wakeup.c Create an identity mapping (V=P) super page for the low memory region on 2007-03-14 22:30:02 +00:00
genwakecode.sh
madt.c For no good reason I had assumed that ACPI table headers would be page 2008-01-31 16:51:43 +00:00
Makefile Add missing acpi_wakecode.o: assym.s dependency, so that if assym.s 2006-10-19 05:55:09 +00:00
OsdEnvironment.c Catch up with ACPI-CA 20070320 import. 2007-03-22 18:16:43 +00:00