Date: Sun, 13 Jun 2004 07:37:52 GMT From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 54801 for review Message-ID: <200406130737.i5D7bqDk056079@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54801 Change 54801 by jmallett@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406130737.i5D7bqDk056079>