diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sparc64/cpudata.h | 6 | ||||
-rw-r--r-- | include/asm-sparc64/irq.h | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/asm-sparc64/cpudata.h b/include/asm-sparc64/cpudata.h index 771aa94dfd95..84656f1895cd 100644 --- a/include/asm-sparc64/cpudata.h +++ b/include/asm-sparc64/cpudata.h | |||
@@ -80,7 +80,6 @@ extern struct trap_per_cpu trap_block[NR_CPUS]; | |||
80 | extern void init_cur_cpu_trap(struct thread_info *); | 80 | extern void init_cur_cpu_trap(struct thread_info *); |
81 | extern void setup_tba(void); | 81 | extern void setup_tba(void); |
82 | 82 | ||
83 | #ifdef CONFIG_SMP | ||
84 | struct cpuid_patch_entry { | 83 | struct cpuid_patch_entry { |
85 | unsigned int addr; | 84 | unsigned int addr; |
86 | unsigned int cheetah_safari[4]; | 85 | unsigned int cheetah_safari[4]; |
@@ -89,7 +88,6 @@ struct cpuid_patch_entry { | |||
89 | unsigned int sun4v[4]; | 88 | unsigned int sun4v[4]; |
90 | }; | 89 | }; |
91 | extern struct cpuid_patch_entry __cpuid_patch, __cpuid_patch_end; | 90 | extern struct cpuid_patch_entry __cpuid_patch, __cpuid_patch_end; |
92 | #endif | ||
93 | 91 | ||
94 | struct sun4v_1insn_patch_entry { | 92 | struct sun4v_1insn_patch_entry { |
95 | unsigned int addr; | 93 | unsigned int addr; |
@@ -123,8 +121,6 @@ extern struct sun4v_2insn_patch_entry __sun4v_2insn_patch, | |||
123 | 121 | ||
124 | #include <asm/scratchpad.h> | 122 | #include <asm/scratchpad.h> |
125 | 123 | ||
126 | #ifdef CONFIG_SMP | ||
127 | |||
128 | #define __GET_CPUID(REG) \ | 124 | #define __GET_CPUID(REG) \ |
129 | /* Spitfire implementation (default). */ \ | 125 | /* Spitfire implementation (default). */ \ |
130 | 661: ldxa [%g0] ASI_UPA_CONFIG, REG; \ | 126 | 661: ldxa [%g0] ASI_UPA_CONFIG, REG; \ |
@@ -156,6 +152,8 @@ extern struct sun4v_2insn_patch_entry __sun4v_2insn_patch, | |||
156 | nop; \ | 152 | nop; \ |
157 | .previous; | 153 | .previous; |
158 | 154 | ||
155 | #ifdef CONFIG_SMP | ||
156 | |||
159 | #define TRAP_LOAD_TRAP_BLOCK(DEST, TMP) \ | 157 | #define TRAP_LOAD_TRAP_BLOCK(DEST, TMP) \ |
160 | __GET_CPUID(TMP) \ | 158 | __GET_CPUID(TMP) \ |
161 | sethi %hi(trap_block), DEST; \ | 159 | sethi %hi(trap_block), DEST; \ |
diff --git a/include/asm-sparc64/irq.h b/include/asm-sparc64/irq.h index 529a9df1ad43..de33d6e1afb5 100644 --- a/include/asm-sparc64/irq.h +++ b/include/asm-sparc64/irq.h | |||
@@ -72,8 +72,11 @@ struct ino_bucket { | |||
72 | #define IMAP_VALID 0x80000000 /* IRQ Enabled */ | 72 | #define IMAP_VALID 0x80000000 /* IRQ Enabled */ |
73 | #define IMAP_TID_UPA 0x7c000000 /* UPA TargetID */ | 73 | #define IMAP_TID_UPA 0x7c000000 /* UPA TargetID */ |
74 | #define IMAP_TID_JBUS 0x7c000000 /* JBUS TargetID */ | 74 | #define IMAP_TID_JBUS 0x7c000000 /* JBUS TargetID */ |
75 | #define IMAP_TID_SHIFT 26 | ||
75 | #define IMAP_AID_SAFARI 0x7c000000 /* Safari AgentID */ | 76 | #define IMAP_AID_SAFARI 0x7c000000 /* Safari AgentID */ |
77 | #define IMAP_AID_SHIFT 26 | ||
76 | #define IMAP_NID_SAFARI 0x03e00000 /* Safari NodeID */ | 78 | #define IMAP_NID_SAFARI 0x03e00000 /* Safari NodeID */ |
79 | #define IMAP_NID_SHIFT 21 | ||
77 | #define IMAP_IGN 0x000007c0 /* IRQ Group Number */ | 80 | #define IMAP_IGN 0x000007c0 /* IRQ Group Number */ |
78 | #define IMAP_INO 0x0000003f /* IRQ Number */ | 81 | #define IMAP_INO 0x0000003f /* IRQ Number */ |
79 | #define IMAP_INR 0x000007ff /* Full interrupt number*/ | 82 | #define IMAP_INR 0x000007ff /* Full interrupt number*/ |