Don't use the first 64KB for anything, including tramps. Move tramps and
authormlarkin <mlarkin@openbsd.org>
Sun, 5 Jan 2014 20:23:56 +0000 (20:23 +0000)
committermlarkin <mlarkin@openbsd.org>
Sun, 5 Jan 2014 20:23:56 +0000 (20:23 +0000)
commit71ce0f956b5470f1b5ed3cd5902d41ebb25ae89c
tree4cda6820dbef2f1f77fa88a5704e9be25e9f7dbc
parentff84e8dce4a0e4a7da1b89f233d65539842e4c11
Don't use the first 64KB for anything, including tramps. Move tramps and
hibernate goo up after 64KB to avoid posible corruption by buggy BIOS SMM
code. Diff also ensures the first 64KB doesn't get handed to UVM either.

ok deraadt@, tested by many with no regressions reported
sys/arch/amd64/amd64/acpi_wakecode.S
sys/arch/amd64/amd64/machdep.c
sys/arch/amd64/amd64/mptramp.S
sys/arch/amd64/include/hibernate_var.h
sys/arch/amd64/include/mpbiosvar.h
sys/arch/i386/i386/acpi_wakecode.S
sys/arch/i386/i386/machdep.c
sys/arch/i386/i386/mptramp.s
sys/arch/i386/include/hibernate_var.h
sys/arch/i386/include/mpbiosvar.h
sys/dev/acpi/acpivar.h