diff options
Diffstat (limited to 'arch/sparc/kernel/sun4m_smp.c')
-rw-r--r-- | arch/sparc/kernel/sun4m_smp.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/arch/sparc/kernel/sun4m_smp.c b/arch/sparc/kernel/sun4m_smp.c index afcf6743f0eb..ff74d33e2709 100644 --- a/arch/sparc/kernel/sun4m_smp.c +++ b/arch/sparc/kernel/sun4m_smp.c | |||
@@ -281,32 +281,9 @@ void smp4m_percpu_timer_interrupt(struct pt_regs *regs) | |||
281 | set_irq_regs(old_regs); | 281 | set_irq_regs(old_regs); |
282 | } | 282 | } |
283 | 283 | ||
284 | static void __init smp4m_blackbox_id(unsigned *addr) | ||
285 | { | ||
286 | int rd = *addr & 0x3e000000; | ||
287 | int rs1 = rd >> 11; | ||
288 | |||
289 | addr[0] = 0x81580000 | rd; /* rd %tbr, reg */ | ||
290 | addr[1] = 0x8130200c | rd | rs1; /* srl reg, 0xc, reg */ | ||
291 | addr[2] = 0x80082003 | rd | rs1; /* and reg, 3, reg */ | ||
292 | } | ||
293 | |||
294 | static void __init smp4m_blackbox_current(unsigned *addr) | ||
295 | { | ||
296 | int rd = *addr & 0x3e000000; | ||
297 | int rs1 = rd >> 11; | ||
298 | |||
299 | addr[0] = 0x81580000 | rd; /* rd %tbr, reg */ | ||
300 | addr[2] = 0x8130200a | rd | rs1; /* srl reg, 0xa, reg */ | ||
301 | addr[4] = 0x8008200c | rd | rs1; /* and reg, 0xc, reg */ | ||
302 | } | ||
303 | |||
304 | void __init sun4m_init_smp(void) | 284 | void __init sun4m_init_smp(void) |
305 | { | 285 | { |
306 | BTFIXUPSET_BLACKBOX(hard_smp_processor_id, smp4m_blackbox_id); | ||
307 | BTFIXUPSET_BLACKBOX(load_current, smp4m_blackbox_current); | ||
308 | BTFIXUPSET_CALL(smp_cross_call, smp4m_cross_call, BTFIXUPCALL_NORM); | 286 | BTFIXUPSET_CALL(smp_cross_call, smp4m_cross_call, BTFIXUPCALL_NORM); |
309 | BTFIXUPSET_CALL(__hard_smp_processor_id, __smp4m_processor_id, BTFIXUPCALL_NORM); | ||
310 | BTFIXUPSET_CALL(smp_ipi_resched, smp4m_ipi_resched, BTFIXUPCALL_NORM); | 287 | BTFIXUPSET_CALL(smp_ipi_resched, smp4m_ipi_resched, BTFIXUPCALL_NORM); |
311 | BTFIXUPSET_CALL(smp_ipi_single, smp4m_ipi_single, BTFIXUPCALL_NORM); | 288 | BTFIXUPSET_CALL(smp_ipi_single, smp4m_ipi_single, BTFIXUPCALL_NORM); |
312 | BTFIXUPSET_CALL(smp_ipi_mask_one, smp4m_ipi_mask_one, BTFIXUPCALL_NORM); | 289 | BTFIXUPSET_CALL(smp_ipi_mask_one, smp4m_ipi_mask_one, BTFIXUPCALL_NORM); |