summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/r2300_switch.S
diff options
context:
space:
mode:
authorHarald Koerfgen <hkoerfg@web.de>1999-08-09 19:43:13 +0000
committerHarald Koerfgen <hkoerfg@web.de>1999-08-09 19:43:13 +0000
commitf67e4ffc79905482c3b9b8c8dd65197bac7eb508 (patch)
treec88163a075d06cf625e7f7aa69572144806d1175 /arch/mips/kernel/r2300_switch.S
parent920be6021d3cd30ce10b1423b565f304736bf899 (diff)
My proposal for non-generic kernels:
o only code for the configured CPU is compiled and linked (saves ~100k for R3000 kernels!) o removed a lot of indirect function calls o removed Ralf's "cowboy patch" o added sanity check for DECstations (print warning if the kernel is configured for the wrong CPU)
Diffstat (limited to 'arch/mips/kernel/r2300_switch.S')
-rw-r--r--arch/mips/kernel/r2300_switch.S18
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/mips/kernel/r2300_switch.S b/arch/mips/kernel/r2300_switch.S
index faac180d1..9341a31e0 100644
--- a/arch/mips/kernel/r2300_switch.S
+++ b/arch/mips/kernel/r2300_switch.S
@@ -1,4 +1,4 @@
-/* $Id: r2300_switch.S,v 1.5 1999/04/11 17:13:56 harald Exp $
+/* $Id: r2300_switch.S,v 1.6 1999/06/13 16:30:32 ralf Exp $
*
* r2300_switch.S: R2300 specific task switching code.
*
@@ -34,7 +34,7 @@
* task_struct *r4xx0_resume(task_struct *prev,
* task_struct *next)
*/
-LEAF(r2300_resume)
+LEAF(resume)
.set reorder
mfc0 t1, CP0_STATUS
.set noreorder
@@ -64,7 +64,7 @@ LEAF(r2300_resume)
mtc0 a3, CP0_ENTRYHI
jr ra
move v0, a0
- END(r2300_resume)
+ END(resume)
/*
* Do lazy fpu context switch. Saves FPU context to the process in a0
@@ -73,7 +73,7 @@ LEAF(r2300_resume)
#define ST_OFF (KERNEL_STACK_SIZE - 32 - PT_SIZE + PT_STATUS)
-LEAF(r2300_lazy_fpu_switch)
+LEAF(lazy_fpu_switch)
mfc0 t0, CP0_STATUS # enable cp1
li t3, 0x20000000
or t0, t3
@@ -94,17 +94,17 @@ LEAF(r2300_lazy_fpu_switch)
.set reorder
FPU_RESTORE($28, t0) # clobbers t0
jr ra
- END(r2300_lazy_fpu_switch)
+ END(lazy_fpu_switch)
/*
* Save a thread's fp context.
*/
.set noreorder
-LEAF(r2300_save_fp)
+LEAF(save_fp)
FPU_SAVE(a0, t1) # clobbers t1
jr ra
swc1 $f0, (THREAD_FPU + 0x00)(a0)
- END(r2300_save_fp)
+ END(save_fp)
/*
* Load the FPU with signalling NANS. This bit pattern we're using has
@@ -116,7 +116,7 @@ LEAF(r2300_save_fp)
#define FPU_DEFAULT 0x00000000
-LEAF(r2300_init_fpu)
+LEAF(init_fpu)
mfc0 t0, CP0_STATUS
li t1, 0x20000000
or t0, t1
@@ -160,4 +160,4 @@ LEAF(r2300_init_fpu)
mtc1 t0, $f30
jr ra
mtc1 t0, $f31
- END(r2300_init_fpu)
+ END(init_fpu)