aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/apic_32.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_32.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_32.h')
-rw-r--r--include/asm-x86/apic_32.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/asm-x86/apic_32.h b/include/asm-x86/apic_32.h
index f909e2daf226..649e9a6f6683 100644
--- a/include/asm-x86/apic_32.h
+++ b/include/asm-x86/apic_32.h
@@ -51,25 +51,23 @@ extern int local_apic_timer_disabled;
51#define setup_secondary_clock setup_secondary_APIC_clock 51#define setup_secondary_clock setup_secondary_APIC_clock
52#endif 52#endif
53 53
54static __inline fastcall void native_apic_write(unsigned long reg, 54static __inline fastcall void native_apic_write(unsigned long reg, u32 v)
55 unsigned long v)
56{ 55{
57 *((volatile unsigned long *)(APIC_BASE+reg)) = v; 56 *((volatile u32 *)(APIC_BASE + reg)) = v;
58} 57}
59 58
60static __inline fastcall void native_apic_write_atomic(unsigned long reg, 59static __inline fastcall void native_apic_write_atomic(unsigned long reg, u32 v)
61 unsigned long v)
62{ 60{
63 xchg((volatile unsigned long *)(APIC_BASE+reg), v); 61 (void) xchg((u32 *)(APIC_BASE + reg), v);
64} 62}
65 63
66static __inline fastcall unsigned long native_apic_read(unsigned long reg) 64static __inline fastcall u32 native_apic_read(unsigned long reg)
67{ 65{
68 return *((volatile unsigned long *)(APIC_BASE+reg)); 66 return *((volatile u32 *)(APIC_BASE + reg));
69} 67}
70 68
71extern void apic_wait_icr_idle(void); 69extern void apic_wait_icr_idle(void);
72extern unsigned long safe_apic_wait_icr_idle(void); 70extern u32 safe_apic_wait_icr_idle(void);
73extern int get_physical_broadcast(void); 71extern int get_physical_broadcast(void);
74 72
75#ifdef CONFIG_X86_GOOD_APIC 73#ifdef CONFIG_X86_GOOD_APIC