diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-01-30 13:30:15 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 13:30:15 +0100 |
commit | 42e0a9aa5d467188687c6b705412578e53c14af6 (patch) | |
tree | 9c9a64a576a4072b816babf0bb81aa5924d2a667 /include/asm-x86/apic_64.h | |
parent | 3c6bb07ac1b4174318606a26f0de8ceb9f6d8133 (diff) | |
download | op-kernel-dev-42e0a9aa5d467188687c6b705412578e53c14af6.zip op-kernel-dev-42e0a9aa5d467188687c6b705412578e53c14af6.tar.gz |
x86: use u32 for some lapic functions
Use u32 so 32 and 64bit have the same interface.
Andrew Morton: xen, lguest build fixes
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/apic_64.h')
-rw-r--r-- | include/asm-x86/apic_64.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-x86/apic_64.h b/include/asm-x86/apic_64.h index 7bfad02..9d0c06c 100644 --- a/include/asm-x86/apic_64.h +++ b/include/asm-x86/apic_64.h @@ -38,14 +38,14 @@ struct pt_regs; * Basic functions accessing APICs. */ -static __inline void apic_write(unsigned long reg, unsigned int v) +static __inline void apic_write(unsigned long reg, u32 v) { *((volatile unsigned int *)(APIC_BASE+reg)) = v; } -static __inline unsigned int apic_read(unsigned long reg) +static __inline u32 apic_read(unsigned long reg) { - return *((volatile unsigned int *)(APIC_BASE+reg)); + return *((volatile u32 *)(APIC_BASE+reg)); } extern void apic_wait_icr_idle(void); |