diff options
author | grehan <grehan@FreeBSD.org> | 2012-04-17 00:54:38 +0000 |
---|---|---|
committer | grehan <grehan@FreeBSD.org> | 2012-04-17 00:54:38 +0000 |
commit | f3d41e0f814a54e72e4d416c0d6dcb66314c3ce1 (patch) | |
tree | 75b208b6ba1d0c1ce91237cec358672e98a3a369 /sys/x86 | |
parent | c73bd7ac42a9d94a6ea0080924b122874617570b (diff) | |
download | FreeBSD-src-f3d41e0f814a54e72e4d416c0d6dcb66314c3ce1.zip FreeBSD-src-f3d41e0f814a54e72e4d416c0d6dcb66314c3ce1.tar.gz |
Add x2apic MSR definitions
Reviewed by: jhb
Obtained from: bhyve via Neel via NetApp
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/include/specialreg.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/sys/x86/include/specialreg.h b/sys/x86/include/specialreg.h index c9a1240..ff6a777 100644 --- a/sys/x86/include/specialreg.h +++ b/sys/x86/include/specialreg.h @@ -359,10 +359,44 @@ #define MSR_MC4_MISC 0x413 /* + * X2APIC MSRs + */ +#define MSR_APIC_ID 0x802 +#define MSR_APIC_VERSION 0x803 +#define MSR_APIC_TPR 0x808 +#define MSR_APIC_EOI 0x80b +#define MSR_APIC_LDR 0x80d +#define MSR_APIC_SVR 0x80f +#define MSR_APIC_ISR0 0x810 +#define MSR_APIC_ISR1 0x811 +#define MSR_APIC_ISR2 0x812 +#define MSR_APIC_ISR3 0x813 +#define MSR_APIC_ISR4 0x814 +#define MSR_APIC_ISR5 0x815 +#define MSR_APIC_ISR6 0x816 +#define MSR_APIC_ISR7 0x817 +#define MSR_APIC_TMR0 0x818 +#define MSR_APIC_IRR0 0x820 +#define MSR_APIC_ESR 0x828 +#define MSR_APIC_LVT_CMCI 0x82F +#define MSR_APIC_ICR 0x830 +#define MSR_APIC_LVT_TIMER 0x832 +#define MSR_APIC_LVT_THERMAL 0x833 +#define MSR_APIC_LVT_PCINT 0x834 +#define MSR_APIC_LVT_LINT0 0x835 +#define MSR_APIC_LVT_LINT1 0x836 +#define MSR_APIC_LVT_ERROR 0x837 +#define MSR_APIC_ICR_TIMER 0x838 +#define MSR_APIC_CCR_TIMER 0x839 +#define MSR_APIC_DCR_TIMER 0x83e +#define MSR_APIC_SELF_IPI 0x83f + +/* * Constants related to MSR's. */ -#define APICBASE_RESERVED 0x000006ff +#define APICBASE_RESERVED 0x000002ff #define APICBASE_BSP 0x00000100 +#define APICBASE_X2APIC 0x00000400 #define APICBASE_ENABLED 0x00000800 #define APICBASE_ADDRESS 0xfffff000 |