aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/apic_64.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-01-30 07:30:15 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:15 -0500
commit42e0a9aa5d467188687c6b705412578e53c14af6 (patch)
tree9c9a64a576a4072b816babf0bb81aa5924d2a667 /include/asm-x86/apic_64.h
parent3c6bb07ac1b4174318606a26f0de8ceb9f6d8133 (diff)
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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-x86/apic_64.h b/include/asm-x86/apic_64.h
index 7bfad0224178..9d0c06c4df91 100644
--- a/include/asm-x86/apic_64.h
+++ b/include/asm-x86/apic_64.h
@@ -38,14 +38,14 @@ struct pt_regs;
38 * Basic functions accessing APICs. 38 * Basic functions accessing APICs.
39 */ 39 */
40 40
41static __inline void apic_write(unsigned long reg, unsigned int v) 41static __inline void apic_write(unsigned long reg, u32 v)
42{ 42{
43 *((volatile unsigned int *)(APIC_BASE+reg)) = v; 43 *((volatile unsigned int *)(APIC_BASE+reg)) = v;
44} 44}
45 45
46static __inline unsigned int apic_read(unsigned long reg) 46static __inline u32 apic_read(unsigned long reg)
47{ 47{
48 return *((volatile unsigned int *)(APIC_BASE+reg)); 48 return *((volatile u32 *)(APIC_BASE+reg));
49} 49}
50 50
51extern void apic_wait_icr_idle(void); 51extern void apic_wait_icr_idle(void);