PERFORCE change 54801 for review
Juli Mallett
jmallett at FreeBSD.org
Sun Jun 13 07:38:40 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=54801
Change 54801 by jmallett at jmallett_oingo on 2004/06/13 07:37:18
Prevent corruption of thread0 pcb, tf and stack by starting the stack
at the correct place loaded into the PCB by cpu_thread_setup.
Affected files ...
.. //depot/projects/mips/sys/mips/mips/locore.S#13 edit
Differences ...
==== //depot/projects/mips/sys/mips/mips/locore.S#13 (text+ko) ====
@@ -90,10 +90,10 @@
jal platform_start
nop
- ld sp, kstack0
- daddiu sp, KSTACK_PAGES << PAGE_SHIFT
- dsrl sp, 3
- dsll sp, 3
+ ld k0, pcpup
+ ld k0, PC_CURTHREAD(k0)
+ ld k0, TD_PCB(k0)
+ ld k0, SF_REG_SP(k0)
/* Start MI things rolling. */
jal mi_startup
More information about the p4-projects
mailing list