summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-05-14 19:02:35 -0700
committerPatrick Mochel <mochel@osdl.org>2003-05-14 19:02:35 -0700
commit69aea20ee7ec285faf5d527691739e07cbb2ec65 (patch)
tree5092769cd77767bf7dee6447049a94409119a27d /include
parent4ca2698928886b2bc09230f31527ab2efbae1ddc (diff)
[PATCH] visws: fix for generic-subarch
From: Andy Wihitcroft <apw@shadowen.org> The generic-subarch patch broke visws builds.
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/mach-visws/mach_apic.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-i386/mach-visws/mach_apic.h b/include/asm-i386/mach-visws/mach_apic.h
index 641c173d4f76..c2681d88b3be 100644
--- a/include/asm-i386/mach-visws/mach_apic.h
+++ b/include/asm-i386/mach-visws/mach_apic.h
@@ -19,6 +19,14 @@
#define check_apicid_used(bitmap, apicid) (bitmap & (1 << apicid))
#define check_apicid_present(bit) (phys_cpu_present_map & (1 << bit))
+#define APIC_ID_MASK (0xF<<24)
+
+static inline unsigned get_apic_id(unsigned long x)
+{
+ return (((x)>>24)&0xF);
+}
+#define GET_APIC_ID(x) get_apic_id(x)
+
static inline int apic_id_registered(void)
{
return (test_bit(GET_APIC_ID(apic_read(APIC_ID)),