From b431de158236846dfdd2130c136ee0cffd640289 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Mon, 25 Nov 2002 02:09:42 -0800 Subject: [PATCH] add sis apic workaround support --- include/asm-i386/io_apic.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/asm-i386/io_apic.h b/include/asm-i386/io_apic.h index e26ea03e7347..642e47f3c929 100644 --- a/include/asm-i386/io_apic.h +++ b/include/asm-i386/io_apic.h @@ -120,9 +120,13 @@ static inline void io_apic_write(unsigned int apic, unsigned int reg, unsigned i /* * Re-write a value: to be used for read-modify-write * cycles where the read already set up the index register. + * + * Older SiS APIC requires we rewrite the index regiser */ -static inline void io_apic_modify(unsigned int apic, unsigned int value) +static inline void io_apic_modify(unsigned int apic, unsigned int reg, unsigned int value) { + if(apic_sis_bug) + *IO_APIC_BASE(apic) = reg; *(IO_APIC_BASE(apic)+4) = value; } -- cgit v1.2.3