diff options
author | avg <avg@FreeBSD.org> | 2017-04-14 14:01:35 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2017-04-14 14:01:35 +0000 |
commit | 5e0d986487f8454744045e79eb15209d1989b766 (patch) | |
tree | 65e0396b480e565f8d0f92efd8498c6af5f443c7 /sys/x86/include/apicvar.h | |
parent | 4ca04241eb4aa836cfe2196040a2fefe04d24d38 (diff) | |
download | FreeBSD-src-5e0d986487f8454744045e79eb15209d1989b766.zip FreeBSD-src-5e0d986487f8454744045e79eb15209d1989b766.tar.gz |
MFC r314398: Local APIC: add support for extended LVT entries found in AMD processors
Diffstat (limited to 'sys/x86/include/apicvar.h')
-rw-r--r-- | sys/x86/include/apicvar.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/x86/include/apicvar.h b/sys/x86/include/apicvar.h index 09c3a63..ba3a237 100644 --- a/sys/x86/include/apicvar.h +++ b/sys/x86/include/apicvar.h @@ -232,6 +232,9 @@ struct apic_ops { /* CMC */ void (*enable_cmc)(void); + /* AMD ELVT */ + int (*enable_mca_elvt)(void); + /* IPI */ void (*ipi_raw)(register_t, u_int); void (*ipi_vectored)(u_int, int); @@ -396,6 +399,13 @@ lapic_enable_cmc(void) apic_ops.enable_cmc(); } +static inline int +lapic_enable_mca_elvt(void) +{ + + return (apic_ops.enable_mca_elvt()); +} + static inline void lapic_ipi_raw(register_t icrlo, u_int dest) { |