forked from Imagelibrary/rtems
SPARC BSPs: disable interrupts as early as possible
There is no point having interrupts enabled before reaching boot_card() that disables interrupt. We better have it off all the time. It is required to turn off interrupt on secondary CPUs in an SMP system.
This commit is contained in:
committed by
Sebastian Huber
parent
82e11be20c
commit
b3211b5a63
@@ -226,8 +226,8 @@ SYM(hard_reset):
|
|||||||
sll %g3, %g2, %g3
|
sll %g3, %g2, %g3
|
||||||
mov %g3, %wim
|
mov %g3, %wim
|
||||||
|
|
||||||
or %g1, 0x20, %g1
|
or %g1, 0xf20, %g1
|
||||||
wr %g1, %psr ! enable traps
|
wr %g1, %psr ! enable traps and disable ints
|
||||||
|
|
||||||
nop
|
nop
|
||||||
nop
|
nop
|
||||||
|
|||||||
Reference in New Issue
Block a user