patch-2.4.25 linux-2.4.25/arch/mips/kernel/head.S
Next file: linux-2.4.25/arch/mips/kernel/ipc.c
Previous file: linux-2.4.25/arch/mips/kernel/gdb-stub.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
2004-02-18 05:36:30.000000000 -0800
- Orig file:
linux-2.4.24/arch/mips/kernel/head.S
- Orig date:
2003-08-25 04:44:40.000000000 -0700
diff -urN linux-2.4.24/arch/mips/kernel/head.S linux-2.4.25/arch/mips/kernel/head.S
@@ -160,14 +160,7 @@
.set noreorder
/*
- * Stack for kernel and init, current variable
- */
- la $28, init_task_union
- addiu t0, $28, KERNEL_STACK_SIZE-32
- subu sp, t0, 4*SZREG
-
- sw t0, kernelsp
- /* The firmware/bootloader passes argc/argp/envp
+ * The firmware/bootloader passes argc/argp/envp
* to us as arguments. But clear bss first because
* the romvec and other important info is stored there
* by prom_init().
@@ -180,6 +173,14 @@
bne t0, t1, 1b
sw zero, (t0)
+ /*
+ * Stack for kernel and init, current variable
+ */
+ la $28, init_task_union
+ addiu t0, $28, KERNEL_STACK_SIZE-32
+ subu sp, t0, 4*SZREG
+ sw t0, kernelsp
+
jal init_arch
nop
END(kernel_entry)
@@ -197,7 +198,7 @@
mtc0 zero, CP0_WIRED
CLI
mfc0 t0, CP0_STATUS
- li t1, ~(ST0_CU1|ST0_CU2|ST0_CU3|ST0_KX|ST0_SX)
+ li t1, ~(ST0_CU1|ST0_CU2|ST0_CU3|ST0_KX|ST0_SX|ST0_UX)
and t0, t1
or t0, (ST0_CU0);
jal start_secondary
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)