freebsd-dev/sys/amd64/amd64
David Malone 93f39ea88a Some BIOSs are using MTRR values that are only documented under NDA
to control the mapping of things like the ACPI and APM into memory.

The problem is that starting X changes these values, so if something
was using the bits of BIOS mapped into memory (say ACPI or APM),
then next time they access this memory the machine would hang.

This patch refuse to change MTRR values it doesn't understand,
unless a new "force" option is given. This means X doesn't change
them by accident but someone can override that if they really want
to.

PR:		28418
Tested by:	Christopher Masto <chris@netmonger.net>,
		David Bushong <david@bushong.net>,
		Santos <casd@myrealbox.com>
MFC after:	1 week
2002-09-15 15:07:55 +00:00
..
amd64_mem.c Some BIOSs are using MTRR values that are only documented under NDA 2002-09-15 15:07:55 +00:00
amd64-gdbstub.c Backed out the main part of revs.1.14-16. Don't disable interrupts in 2002-01-30 18:51:24 +00:00
apic_vector.S Ok, somebody please shoot me. The asm I wrote for the ranged IPI shootdown 2002-08-23 21:45:59 +00:00
atomic.c Introduce atomic_cmpset_int() and atomic_cmpset_long() from SMPng a 2000-09-06 11:21:14 +00:00
autoconf.c Don't free(9) a pointer which has been modified. 2002-04-23 18:52:39 +00:00
bios.c Move some variables to the BSS instead of explicitly zero'ing them. This 2002-09-05 17:05:15 +00:00
busdma_machdep.c Don't use "NULL" when "0" is really meant. 2002-08-21 23:39:52 +00:00
cpu_switch.S Move SWTCH_OPTIM_STATS related code out of cpufunc.h. (This sort of stat 2002-07-21 05:22:16 +00:00
critical.c Remove the critmode sysctl - the new method for critical_enter/exit (already 2002-07-10 20:15:58 +00:00
db_disasm.c Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 14:27:06 +00:00
db_interface.c db_ps.c: 2002-08-31 04:25:44 +00:00
db_trace.c Unwind the syscall_with_err_pushed tweak that jake did some time back. 2002-07-28 00:27:51 +00:00
dump_machdep.c Unbreak kernel build by printing Maxmem using %ld instead of old (now changed) 2002-08-30 06:13:39 +00:00
elf_machdep.c Added fields for VM_MIN_ADDRESS, PS_STRINGS and stack protections to 2002-09-01 21:41:24 +00:00
exception.s Unwind the syscall_with_err_pushed tweak that jake did some time back. 2002-07-28 00:27:51 +00:00
exception.S Unwind the syscall_with_err_pushed tweak that jake did some time back. 2002-07-28 00:27:51 +00:00
fpu.c Automatically enable CPU_ENABLE_SSE (detect and enable SSE instructions) 2002-09-07 07:02:12 +00:00
genassym.c Re-enable the idle page-zeroing code. Remove all IPIs from the idle 2002-07-12 20:17:06 +00:00
identcpu.c Change the support for AMDs ElanSC520 CPU from being a device driver to 2002-09-04 19:43:22 +00:00
in_cksum.c In in_cksumdata, len must be a signed type. 2001-10-05 18:58:22 +00:00
initcpu.c Automatically enable CPU_ENABLE_SSE (detect and enable SSE instructions) 2002-09-07 07:02:12 +00:00
legacy.c Use resource_list_print_type() instead of duplicating the code in 2002-09-04 03:19:33 +00:00
locore.s Revive backed out pmap related changes from Feb 2002. The highlights are: 2002-07-12 07:56:11 +00:00
locore.S Revive backed out pmap related changes from Feb 2002. The highlights are: 2002-07-12 07:56:11 +00:00
machdep.c Fill out two fields (si_pid, si_uid) in the siginfo structure handed back 2002-09-07 19:12:53 +00:00
mem.c Take a shot at fixing a nasty bug in the pmap changes that I did. I 2002-08-03 00:59:15 +00:00
mp_machdep.c OK, I have had it with losing my console because the AP's print their "I am 2002-08-28 23:24:05 +00:00
mpboot.S Remove the leading underscore from all symbols defined in x86 asm 2001-02-25 06:29:04 +00:00
mptable.c OK, I have had it with losing my console because the AP's print their "I am 2002-08-28 23:24:05 +00:00
nexus.c Use resource_list_print_type() instead of duplicating the code in 2002-09-04 03:19:33 +00:00
pmap.c o Retire pmap_pageable(). It's an advisory routine that none 2002-08-25 04:20:05 +00:00
prof_machdep.c Quick fix for high resolution kernel profiling on i386's. Use 2002-07-13 22:28:34 +00:00
support.s Revive backed out pmap related changes from Feb 2002. The highlights are: 2002-07-12 07:56:11 +00:00
support.S Revive backed out pmap related changes from Feb 2002. The highlights are: 2002-07-12 07:56:11 +00:00
swtch.s Move SWTCH_OPTIM_STATS related code out of cpufunc.h. (This sort of stat 2002-07-21 05:22:16 +00:00
sys_machdep.c Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
trap.c Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
tsc.c Clock frequencies reported by sysctl should be unsigned values. Discovered 2002-06-22 16:30:18 +00:00
vm_machdep.c Zap the implementations of the i386-aout specific cpu_coredump function. 2002-09-07 01:26:34 +00:00