mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
fix: interrupt handler
remove asm code
This commit is contained in:
parent
f3f001a341
commit
792032baa7
2 changed files with 1 additions and 10 deletions
|
@ -37,13 +37,11 @@ extern void microblaze_enable_interrupts (void);
|
|||
void enable_interrupts (void)
|
||||
{
|
||||
__asm__ __volatile__ ("msrset r0, 0x2");
|
||||
//microblaze_enable_interrupts ();
|
||||
}
|
||||
|
||||
int disable_interrupts (void)
|
||||
{
|
||||
__asm__ __volatile__ ("msrclr r0, 0x2");
|
||||
//microblaze_disable_interrupts ();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -151,14 +151,7 @@ _interrupt_handler:
|
|||
addi r1, r1, 4
|
||||
|
||||
/* enable_interrupt */
|
||||
addi r1, r1, -4
|
||||
swi r12, r1, 0
|
||||
mfs r12, rmsr
|
||||
ori r12, r12, 2
|
||||
mts rmsr, r12
|
||||
lwi r12, r1, 0
|
||||
addi r1, r1, 4
|
||||
nop
|
||||
msrset r0, 2
|
||||
bra r14
|
||||
nop
|
||||
nop
|
||||
|
|
Loading…
Reference in a new issue