NetBSD/sys/arch/x86/include
jym bc0420413d This patch fixes the NX regression issue observed on amd64 kernels, where
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.
2010-04-18 23:47:50 +00:00
..
acpi_machdep.h Add acpi_md_OsEnableInterrupt, to go with acpi_md_OsDisableInterrupt 2009-03-14 13:54:28 +00:00
aout_machdep.h
apicvar.h
bios32.h
bootinfo.h Pass the VBE mode number from the bootloader to the kernel, and then 2009-08-24 02:15:46 +00:00
bus_private.h
bus.h
busdefs.h
cacheinfo.h Fix toyp in previous. Pointed out by snj@ 2009-05-13 23:26:38 +00:00
cpu_counter.h
cpu_msr.h Remove X86_IPI_WRITE_MSR (and msr_ipifuncs.c), replace all uses in drivers 2009-10-05 23:59:30 +00:00
cpu.h This patch fixes the NX regression issue observed on amd64 kernels, where 2010-04-18 23:47:50 +00:00
cpufunc.h
cputypes.h
cpuvar.h This patch fixes the NX regression issue observed on amd64 kernels, where 2010-04-18 23:47:50 +00:00
float.h
genfb_machdep.h
i8259.h
i82093reg.h
i82093var.h It is only by accident that these get the definitions they need from 2009-03-25 22:56:00 +00:00
i82489reg.h add LAPIC_MSR_ENABLE_x2 MSR. from murray@river-styx via port-amd64@ 2010-01-09 20:50:11 +00:00
i82489var.h
ieee.h
ieeefp.h
intr.h cpuctl: 2009-04-19 14:11:36 +00:00
intrdefs.h Remove X86_IPI_WRITE_MSR (and msr_ipifuncs.c), replace all uses in drivers 2009-10-05 23:59:30 +00:00
ipmivar.h Overhaul synchronization in ipmi(4): synchronize all access to 2009-07-20 19:11:30 +00:00
isa_machdep.h isa_detach_hook() needs two arguments, the first an isa_chipset_tag_t. 2009-08-19 15:04:27 +00:00
loadfile_machdep.h Fix 'boot -z' bogons. 2009-03-21 15:01:56 +00:00
lock.h
machdep.h
Makefile
math.h
mpacpi.h Introduce sys/arch/x86/x86/mp.c for common x86 MP configuration code. 2009-04-17 21:07:58 +00:00
mpbiosreg.h This patch fixes the NX regression issue observed on amd64 kernels, where 2010-04-18 23:47:50 +00:00
mpbiosvar.h Introduce sys/arch/x86/x86/mp.c for common x86 MP configuration code. 2009-04-17 21:07:58 +00:00
mpconfig.h add x2apic support. 2010-01-09 20:56:17 +00:00
mtrr.h
mutex.h A workaround for a bug with some Opteron revisions where locked operations 2009-04-24 17:49:51 +00:00
nmi.h
pci_machdep_common.h Add a prototype for pci_mmio_range_infer() that will infer the 2010-03-20 00:02:59 +00:00
pci_machdep.h Add a new member, pc_super, to x86's pci_chipset_tag: pc.pc_super points 2010-03-14 20:19:06 +00:00
pic.h cpuctl: 2009-04-19 14:11:36 +00:00
pio.h
pmap_pv.h
pmap.h Fix typos in comments. 2010-02-09 22:51:13 +00:00
powernow.h
psl.h
rtc.h Split mc146818-related functions from clock.c into rtc.c. 2009-06-16 21:05:33 +00:00
rwlock.h
smbiosvar.h
specialreg.h This patch fixes the NX regression issue observed on amd64 kernels, where 2010-04-18 23:47:50 +00:00
sysarch.h PR port-i386/40143 Viewing an mpeg transport stream with mplayer causes crash 2009-03-21 14:41:29 +00:00
tprof.h
trap.h
vga_post.h Add vga_post_set_vbe for setting video mode. 2009-08-24 11:33:49 +00:00
via_padlock.h sort out what is needed for crash(8) and what not, should fix 2009-04-01 21:15:45 +00:00