Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79741
b: refs/heads/master
c: 42e0a9a
h: refs/heads/master
i:
  79739: 1769167
v: v3
  • Loading branch information
Thomas Gleixner authored and Ingo Molnar committed Jan 30, 2008
1 parent 1b1d860 commit a2e6ba1
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 25 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c6bb07ac1b4174318606a26f0de8ceb9f6d8133
refs/heads/master: 42e0a9aa5d467188687c6b705412578e53c14af6
4 changes: 2 additions & 2 deletions trunk/arch/x86/kernel/apic_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ void apic_wait_icr_idle(void)
cpu_relax();
}

unsigned long safe_apic_wait_icr_idle(void)
u32 safe_apic_wait_icr_idle(void)
{
unsigned long send_status;
u32 send_status;
int timeout;

timeout = 0;
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/lguest/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -788,11 +788,11 @@ static void lguest_wbinvd(void)
* code qualifies for Advanced. It will also never interrupt anything. It
* does, however, allow us to get through the Linux boot code. */
#ifdef CONFIG_X86_LOCAL_APIC
static void lguest_apic_write(unsigned long reg, unsigned long v)
static void lguest_apic_write(unsigned long reg, u32 v)
{
}

static unsigned long lguest_apic_read(unsigned long reg)
static u32 lguest_apic_read(unsigned long reg)
{
return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,12 +521,12 @@ static void xen_io_delay(void)
}

#ifdef CONFIG_X86_LOCAL_APIC
static unsigned long xen_apic_read(unsigned long reg)
static u32 xen_apic_read(unsigned long reg)
{
return 0;
}

static void xen_apic_write(unsigned long reg, unsigned long val)
static void xen_apic_write(unsigned long reg, u32 val)
{
/* Warn to see if there's any stray references */
WARN_ON(1);
Expand Down
16 changes: 7 additions & 9 deletions trunk/include/asm-x86/apic_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,23 @@ extern int local_apic_timer_disabled;
#define setup_secondary_clock setup_secondary_APIC_clock
#endif

static __inline fastcall void native_apic_write(unsigned long reg,
unsigned long v)
static __inline fastcall void native_apic_write(unsigned long reg, u32 v)
{
*((volatile unsigned long *)(APIC_BASE+reg)) = v;
*((volatile u32 *)(APIC_BASE + reg)) = v;
}

static __inline fastcall void native_apic_write_atomic(unsigned long reg,
unsigned long v)
static __inline fastcall void native_apic_write_atomic(unsigned long reg, u32 v)
{
xchg((volatile unsigned long *)(APIC_BASE+reg), v);
(void) xchg((u32 *)(APIC_BASE + reg), v);
}

static __inline fastcall unsigned long native_apic_read(unsigned long reg)
static __inline fastcall u32 native_apic_read(unsigned long reg)
{
return *((volatile unsigned long *)(APIC_BASE+reg));
return *((volatile u32 *)(APIC_BASE + reg));
}

extern void apic_wait_icr_idle(void);
extern unsigned long safe_apic_wait_icr_idle(void);
extern u32 safe_apic_wait_icr_idle(void);
extern int get_physical_broadcast(void);

#ifdef CONFIG_X86_GOOD_APIC
Expand Down
6 changes: 3 additions & 3 deletions trunk/include/asm-x86/apic_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
12 changes: 6 additions & 6 deletions trunk/include/asm-x86/paravirt.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ struct pv_apic_ops {
* Direct APIC operations, principally for VMI. Ideally
* these shouldn't be in this interface.
*/
void (*apic_write)(unsigned long reg, unsigned long v);
void (*apic_write_atomic)(unsigned long reg, unsigned long v);
unsigned long (*apic_read)(unsigned long reg);
void (*apic_write)(unsigned long reg, u32 v);
void (*apic_write_atomic)(unsigned long reg, u32 v);
u32 (*apic_read)(unsigned long reg);
void (*setup_boot_clock)(void);
void (*setup_secondary_clock)(void);

Expand Down Expand Up @@ -690,17 +690,17 @@ static inline void slow_down_io(void) {
/*
* Basic functions accessing APICs.
*/
static inline void apic_write(unsigned long reg, unsigned long v)
static inline void apic_write(unsigned long reg, u32 v)
{
PVOP_VCALL2(pv_apic_ops.apic_write, reg, v);
}

static inline void apic_write_atomic(unsigned long reg, unsigned long v)
static inline void apic_write_atomic(unsigned long reg, u32 v)
{
PVOP_VCALL2(pv_apic_ops.apic_write_atomic, reg, v);
}

static inline unsigned long apic_read(unsigned long reg)
static inline u32 apic_read(unsigned long reg)
{
return PVOP_CALL1(unsigned long, pv_apic_ops.apic_read, reg);
}
Expand Down

0 comments on commit a2e6ba1

Please sign in to comment.