summaryrefslogtreecommitdiff
path: root/sys/arch/i386/conf/GENERIC
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-19 21:30:03 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-19 21:30:03 +0000
commit3da9216a34260a8af685643747142609f1cab6e1 (patch)
treefe46fccce43874cf90c20314ccc01c7b160db643 /sys/arch/i386/conf/GENERIC
parentd3b790f6eb57cf45181caf91e4b990c5ae187222 (diff)
Mtrr stops being a pseudo-device. We need to probe the cpu type and
initialize the structures when we see the first cpu. We also need to initialize each cpu's properly (for PAT) before we setup mtrr on that cpu. On i386 (late hatch) we were getting this desperately wrong on the primary cpu. After suspend/resume, we also need to do the same work. re-initialize PAT before mtrr. On some laptops apparently PAT was not turned on by the BIOS, so we ended up with incorrect setup for the primary cpu. Oops. This makes mplayer on the x201 (and similar) machines work without weird pauses after a suspend/resume. Many other things are likely fixed. ok kettenis
Diffstat (limited to 'sys/arch/i386/conf/GENERIC')
-rw-r--r--sys/arch/i386/conf/GENERIC4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/conf/GENERIC b/sys/arch/i386/conf/GENERIC
index f82e559f111..7e87a0e94fe 100644
--- a/sys/arch/i386/conf/GENERIC
+++ b/sys/arch/i386/conf/GENERIC
@@ -1,4 +1,4 @@
-# $OpenBSD: GENERIC,v 1.761 2013/11/15 19:42:20 sasano Exp $
+# $OpenBSD: GENERIC,v 1.762 2013/12/19 21:30:02 deraadt Exp $
#
# For further information on compiling OpenBSD kernels, see the config(8)
# man page.
@@ -19,6 +19,7 @@ option USER_PCICONF # user-space PCI configuration
option KVM86 # Kernel Virtual 8086 emulation
option USER_LDT # user-settable LDT; see i386_set_ldt(2)
option APERTURE # in-kernel aperture driver for XFree86
+option MTRR # CPU memory range attributes control
#option KGDB # Remote debugger support; exclusive of DDB
#option "KGDB_DEVNAME=\"com\"",KGDBADDR=0x2f8,KGDBRATE=9600
@@ -778,7 +779,6 @@ owtemp* at onewire? # Temperature
owctr* at onewire? # Counter device
pseudo-device pctr 1
-pseudo-device mtrr 1 # Memory range attributes control
pseudo-device nvram 1
pseudo-device hotplug 1 # devices hot plugging