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/ite-boards | |
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/ite-boards')
-rw-r--r-- | arch/mips/ite-boards/generic/irq.c | 2 | ||||
-rw-r--r-- | arch/mips/ite-boards/generic/it8172_setup.c | 2 | ||||
-rw-r--r-- | arch/mips/ite-boards/generic/reset.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/ite-boards/generic/irq.c b/arch/mips/ite-boards/generic/irq.c index 4a10e0b47..7c8870d12 100644 --- a/arch/mips/ite-boards/generic/irq.c +++ b/arch/mips/ite-boards/generic/irq.c @@ -440,7 +440,7 @@ void __init init_IRQ(void) * All ITE interrupts are masked for now. */ enable_irq(1<<EXT_IRQ0_TO_IP); - //set_cp0_status(ST0_IM, IE_IRQ2); + //change_cp0_status(ST0_IM, IE_IRQ2); #ifdef CONFIG_REMOTE_DEBUG /* If local serial I/O used for debug port, enter kgdb at once */ diff --git a/arch/mips/ite-boards/generic/it8172_setup.c b/arch/mips/ite-boards/generic/it8172_setup.c index e111c71cc..8e7f67edd 100644 --- a/arch/mips/ite-boards/generic/it8172_setup.c +++ b/arch/mips/ite-boards/generic/it8172_setup.c @@ -127,7 +127,7 @@ void __init it8172_setup(void) } #endif - set_cp0_status(ST0_FR,0); + clear_cp0_status(ST0_FR); rtc_ops = &it8172_rtc_ops; _machine_restart = it8172_restart; diff --git a/arch/mips/ite-boards/generic/reset.c b/arch/mips/ite-boards/generic/reset.c index 22bcf79ff..1e013c93d 100644 --- a/arch/mips/ite-boards/generic/reset.c +++ b/arch/mips/ite-boards/generic/reset.c @@ -39,8 +39,8 @@ void it8172_restart(char *command) { - set_cp0_status((ST0_BEV | ST0_ERL), (ST0_BEV | ST0_ERL)); - set_cp0_config(CONF_CM_CMASK, CONF_CM_UNCACHED); + set_cp0_status(ST0_BEV | ST0_ERL); + change_cp0_config(CONF_CM_CMASK, CONF_CM_UNCACHED); flush_cache_all(); write_32bit_cp0_register(CP0_WIRED, 0); __asm__ __volatile__("jr\t%0"::"r"(0xbfc00000)); |