Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136725
b: refs/heads/master
c: 3c552ac
h: refs/heads/master
i:
  136723: 92d40f3
v: v3
  • Loading branch information
Jeremy Fitzhardinge committed Feb 9, 2009
1 parent 2101083 commit 92434ff
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 8 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: 0e81cb59c7120191c0243c686b591797bc79e5c6
refs/heads/master: 3c552ac8a747d6c26d13302c54d71dae9f56f4ac
35 changes: 29 additions & 6 deletions trunk/arch/x86/include/asm/apic.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,35 @@ struct apic_ops {

extern struct apic_ops *apic_ops;

#define apic_read (apic_ops->read)
#define apic_write (apic_ops->write)
#define apic_icr_read (apic_ops->icr_read)
#define apic_icr_write (apic_ops->icr_write)
#define apic_wait_icr_idle (apic_ops->wait_icr_idle)
#define safe_apic_wait_icr_idle (apic_ops->safe_wait_icr_idle)
static inline u32 apic_read(u32 reg)
{
return apic_ops->read(reg);
}

static inline void apic_write(u32 reg, u32 val)
{
apic_ops->write(reg, val);
}

static inline u64 apic_icr_read(void)
{
return apic_ops->icr_read();
}

static inline void apic_icr_write(u32 low, u32 high)
{
apic_ops->icr_write(low, high);
}

static inline void apic_wait_icr_idle(void)
{
apic_ops->wait_icr_idle();
}

static inline u32 safe_apic_wait_icr_idle(void)
{
return apic_ops->safe_wait_icr_idle();
}

extern int get_physical_broadcast(void);

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ void __init setup_arch(char **cmdline_p)
map_vsyscall();
#endif

#ifdef CONFIG_X86_32
#if defined(CONFIG_X86_32_NON_STANDARD) || defined(CONFIG_X86_BIGSMP)
generic_apic_probe();
#endif

Expand Down

0 comments on commit 92434ff

Please sign in to comment.