diff options
author | Michal Simek <monstr@monstr.eu> | 2007-05-07 19:30:12 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2007-05-07 19:30:12 +0200 |
commit | 792032baa7d625e34c981ab6df521911bd8dc861 (patch) | |
tree | 7cafec8271ec344ffd8e6772d977ed12e49d326d /cpu/microblaze | |
parent | f3f001a341ef185d0f13841be5b5dc3395aacc31 (diff) | |
download | u-boot-midas-792032baa7d625e34c981ab6df521911bd8dc861.tar.gz u-boot-midas-792032baa7d625e34c981ab6df521911bd8dc861.tar.bz2 u-boot-midas-792032baa7d625e34c981ab6df521911bd8dc861.zip |
fix: interrupt handler
remove asm code
Diffstat (limited to 'cpu/microblaze')
-rw-r--r-- | cpu/microblaze/interrupts.c | 2 | ||||
-rw-r--r-- | cpu/microblaze/irq.S | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/cpu/microblaze/interrupts.c b/cpu/microblaze/interrupts.c index c0c92ec559..dd6a0c7776 100644 --- a/cpu/microblaze/interrupts.c +++ b/cpu/microblaze/interrupts.c @@ -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; } diff --git a/cpu/microblaze/irq.S b/cpu/microblaze/irq.S index a4e3fbfad6..393d6e8dd4 100644 --- a/cpu/microblaze/irq.S +++ b/cpu/microblaze/irq.S @@ -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 |