CVSROOT: /cvs Module name: src Changes by: kette...@cvs.openbsd.org 2010/03/23 13:31:18
Modified files: sys/arch/amd64/amd64: amd64_mem.c sys/arch/i386/i386: i686_mem.c Log message: Use CPUID leaf function 0x80000008 to fetch the physical address size supported by the processor and use it to calculate the mask used for manipulating the MTRR registers. If CPUID leaf function 0x80000008 isn't supported by the processor, default to the 36-bit mask we used before. Fixes issues on machines that don't have a 36-bit physical address space like Intel Atom and all 64-bit AMD CPUs. ok weingart@, deraadt@