summaryrefslogtreecommitdiffstats
path: root/arch/mips/philips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-03-11 21:52:24 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-03-11 21:52:24 +0000
commit34b560ff2837a78a20af84d332d59ea8a68f277e (patch)
treef6f438e7d29711555e773c6db0200f5d11bc25ad /arch/mips/philips
parentdd422013dc7f307f70a893fcf18b95c47b144823 (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/philips')
-rw-r--r--arch/mips/philips/nino/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/philips/nino/setup.c b/arch/mips/philips/nino/setup.c
index 7ac6cdf06..2554d3bfb 100644
--- a/arch/mips/philips/nino/setup.c
+++ b/arch/mips/philips/nino/setup.c
@@ -58,9 +58,9 @@ static void __init nino_irq_setup(void)
* Enable only the interrupts for the UART and negative
* edge (1-to-0) triggered multi-function I/O pins.
*/
- set_cp0_status(ST0_BEV, 0);
+ clear_cp0_status(ST0_BEV);
tmp = read_32bit_cp0_register(CP0_STATUS);
- set_cp0_status(ST0_IM, tmp | IE_IRQ2 | IE_IRQ4);
+ change_cp0_status(ST0_IM, tmp | IE_IRQ2 | IE_IRQ4);
/* Register the global interrupt handler */
set_except_vector(0, nino_handle_int);