bc0420413d
per-page execution right was disabled (therefore leading to the inability of the kernel to detect fraudulent use of memory mappings marked as not being executable). - replace cpu_feature and ci_feature_flags variables by cpu_feature and ci_feat_val arrays. This makes it cleaner and brings kernel code closer to the design of cpuctl(8). A warning will be raised for each CPU that does not expose the same features as the Boot Processor (BP). - the blacklist of CPU features is now a macro defined in the specialreg.h header, instead of hardcoding it inside MD initialization code; fix comments. - replace checks against CPUID_TSC with the cpu_hascounter() function. - clean up the code in init_x86_64(), as cpu_feature variables are set inside cpu_probe(). - use cpu_init_msrs() for i386. It will be eventually used later for NX feature under i386 PAE kernels. - remove code that checks for CPUID_NOX in amd64 mptramp.S, this is already performed by cpu_hatch() through cpu_init_msrs(). - remove cpu_signature and feature_flags members from struct mpbios_proc (they were never used). This patch was tested with i386 MONOLITHIC, XEN3PAE_DOM0 and XEN3_DOM0 under a native i386 host, and amd64 GENERIC, XEN3_DOM0 via QEMU virtual machines. XXX Should kernel rev be bumped? XXX A similar patch should be pulled-up for NetBSD-5, hopefully tomorrow. |
||
---|---|---|
.. | ||
acpi_machdep.h | ||
aout_machdep.h | ||
apicvar.h | ||
bios32.h | ||
bootinfo.h | ||
bus_private.h | ||
bus.h | ||
busdefs.h | ||
cacheinfo.h | ||
cpu_counter.h | ||
cpu_msr.h | ||
cpu.h | ||
cpufunc.h | ||
cputypes.h | ||
cpuvar.h | ||
float.h | ||
genfb_machdep.h | ||
i8259.h | ||
i82093reg.h | ||
i82093var.h | ||
i82489reg.h | ||
i82489var.h | ||
ieee.h | ||
ieeefp.h | ||
intr.h | ||
intrdefs.h | ||
ipmivar.h | ||
isa_machdep.h | ||
loadfile_machdep.h | ||
lock.h | ||
machdep.h | ||
Makefile | ||
math.h | ||
mpacpi.h | ||
mpbiosreg.h | ||
mpbiosvar.h | ||
mpconfig.h | ||
mtrr.h | ||
mutex.h | ||
nmi.h | ||
pci_machdep_common.h | ||
pci_machdep.h | ||
pic.h | ||
pio.h | ||
pmap_pv.h | ||
pmap.h | ||
powernow.h | ||
psl.h | ||
rtc.h | ||
rwlock.h | ||
smbiosvar.h | ||
specialreg.h | ||
sysarch.h | ||
tprof.h | ||
trap.h | ||
vga_post.h | ||
via_padlock.h |