From owner-p4-projects@FreeBSD.ORG Wed Nov 22 13:16:31 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5FA6916A50E; Wed, 22 Nov 2006 13:16:31 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 347AA16A4FC for ; Wed, 22 Nov 2006 13:16:31 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DFD14401F for ; Wed, 22 Nov 2006 13:12:57 +0000 (GMT) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAMDChsJ057436 for ; Wed, 22 Nov 2006 13:12:43 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAMDChJh057432 for perforce@freebsd.org; Wed, 22 Nov 2006 13:12:43 GMT (envelope-from gonzo@FreeBSD.org) Date: Wed, 22 Nov 2006 13:12:43 GMT Message-Id: <200611221312.kAMDChJh057432@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 110381 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2006 13:16:31 -0000 http://perforce.freebsd.org/chv.cgi?CH=110381 Change 110381 by gonzo@gonzo_hq on 2006/11/22 13:11:55 o a1 may be changed during pmap_activate call, so don't rely on pre-call value, get it from stack after call. Affected files ... .. //depot/projects/mips2/src/sys/mips/mips/swtch.S#6 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/mips/swtch.S#6 (text+ko) ==== @@ -46,9 +46,9 @@ lw t3, 0(sp) addu sp, 8 - lw t1, TD_MD_PTE0(a1) # a1 = stack_pte[0] - lw t2, TD_MD_PTE1(a1) # a2 = stack_pte[1] - lw v0, TD_MD_REALSTACK(a1) # va = md_realstack + lw t1, TD_MD_PTE0(t3) # a1 = stack_pte[0] + lw t2, TD_MD_PTE1(t3) # a2 = stack_pte[1] + lw v0, TD_MD_REALSTACK(t3) # va = md_realstack li s0, MIPS_KSSEG_START blt v0, s0, resume nop