From owner-p4-projects@FreeBSD.ORG Sun Jun 13 07:37:50 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6F23B16A4D1; Sun, 13 Jun 2004 07:37:50 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4304116A4CE for ; Sun, 13 Jun 2004 07:37:50 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C5C443D46 for ; Sun, 13 Jun 2004 07:37:50 +0000 (GMT) (envelope-from jmallett@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5D7ZmLn055994 for ; Sun, 13 Jun 2004 07:35:48 GMT (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5D7ZmP7055991 for perforce@freebsd.org; Sun, 13 Jun 2004 07:35:48 GMT (envelope-from jmallett@freebsd.org) Date: Sun, 13 Jun 2004 07:35:48 GMT Message-Id: <200406130735.i5D7ZmP7055991@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett To: Perforce Change Reviews Subject: PERFORCE change 54798 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jun 2004 07:37:51 -0000 http://perforce.freebsd.org/chv.cgi?CH=54798 Change 54798 by jmallett@jmallett_oingo on 2004/06/13 07:35:25 Always set up the stack to be below the PCB+TF in cpu_thread_setup() Affected files ... .. //depot/projects/mips/sys/mips/mips/vm_machdep.c#18 edit Differences ... ==== //depot/projects/mips/sys/mips/mips/vm_machdep.c#18 (text+ko) ==== @@ -77,9 +77,6 @@ */ bcopy(td->td_frame, td2->td_frame, sizeof *td2->td_frame); - /* And lastly, stack pointer, begin a trapframe below frame. */ - td2->td_pcb->pcb_regs[8] = (register_t)_ALIGN(td2->td_frame - 1); - /* * Call fork_trampoline into fork_return via the pcb. */ @@ -122,6 +119,8 @@ (struct pcb *)(td->td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; td->td_frame = (struct trapframe *)td->td_pcb - 1; td->td_pcb->pcb_regs[11] = MIPS_SR_KX | MIPS_SR_INT_IE; + /* Stack pointer. */ + td->td_pcb->pcb_regs[8] = (register_t)_ALIGN(td->td_frame - 1); } /*