diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-03-11 21:52:24 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-03-11 21:52:24 +0000 |
commit | 34b560ff2837a78a20af84d332d59ea8a68f277e (patch) | |
tree | f6f438e7d29711555e773c6db0200f5d11bc25ad /arch/mips/jazz | |
parent | dd422013dc7f307f70a893fcf18b95c47b144823 (diff) |
Replace set_cp0_status / set_cp0_config by three functions, clear_cp0_*,
set_cp0_* and change_cp0_* which makes the kernel code somewhat more
readable. Going through the kernel code I notices some stupid abuse of
the old function like set_cp0_status(ST0_BEV, 1) - this clear ST0_BEV
but actually looks like attempting to set it and other abuses, so will
people please look over their code again.
Diffstat (limited to 'arch/mips/jazz')
-rw-r--r-- | arch/mips/jazz/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/jazz/setup.c b/arch/mips/jazz/setup.c index 91d2f176b..9b125c255 100644 --- a/arch/mips/jazz/setup.c +++ b/arch/mips/jazz/setup.c @@ -71,7 +71,7 @@ static void __init jazz_irq_setup(void) JAZZ_IE_FLOPPY); r4030_read_reg16(JAZZ_IO_IRQ_SOURCE); /* clear pending IRQs */ r4030_read_reg32(JAZZ_R4030_INVAL_ADDR); /* clear error bits */ - set_cp0_status(ST0_IM, IE_IRQ4 | IE_IRQ3 | IE_IRQ2 | IE_IRQ1); + change_cp0_status(ST0_IM, IE_IRQ4 | IE_IRQ3 | IE_IRQ2 | IE_IRQ1); /* set the clock to 100 Hz */ r4030_write_reg32(JAZZ_TIMER_INTERVAL, 9); request_region(0x20, 0x20, "pic1"); |