From owner-p4-projects@FreeBSD.ORG Sat Apr 26 12:53:01 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9798137B404; Sat, 26 Apr 2003 12:53:00 -0700 (PDT) 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 49F3337B401 for ; Sat, 26 Apr 2003 12:53:00 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E608A43FA3 for ; Sat, 26 Apr 2003 12:52:59 -0700 (PDT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h3QJqx0U051334 for ; Sat, 26 Apr 2003 12:52:59 -0700 (PDT) (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3QJqxEX051324 for perforce@freebsd.org; Sat, 26 Apr 2003 12:52:59 -0700 (PDT) Date: Sat, 26 Apr 2003 12:52:59 -0700 (PDT) Message-Id: <200304261952.h3QJqxEX051324@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Subject: PERFORCE change 29809 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: Sat, 26 Apr 2003 19:53:01 -0000 http://perforce.freebsd.org/chv.cgi?CH=29809 Change 29809 by marcel@marcel_nfs on 2003/04/26 12:52:49 Delay restoring the stack pointer until after we're done with the trapframe and in this case after the loadrs. We had a nice "window of pain" in which an exception would clobber the stack because we already set the stack pointer to that of the process. Affected files ... .. //depot/projects/ia64_epc/sys/ia64/ia64/syscall.s#12 edit Differences ... ==== //depot/projects/ia64_epc/sys/ia64/ia64/syscall.s#12 (text+ko) ==== @@ -406,19 +406,19 @@ { .mmi ld8 r19=[r15],16 // pr ld8 r20=[r14],16 // pfs (syscall stub) - mov sp=r16 + mov b6=r18 ;; } { .mmi ld8 r21=[r15],24 // bspstore ld8 r22=[r14],24 // rnat - mov b6=r18 + mov pr=r19,0x1fffe ;; } -{ .mmi +{ .mmb ld8 r23=[r15],16 // tp ld8 r24=[r14],16 // rsc - mov pr=r19,0x1fffe + nop 0 ;; } { .mmi @@ -427,7 +427,7 @@ mov ar.pfs=r20 ;; } -{ .mmi +{ .mmb ld8 gp=[r15],16 // gp ld8 r27=[r14],16 // ndirty nop 0 @@ -439,7 +439,7 @@ shl r27=r27,16 ;; } -{ .mmi +{ .mmb ld8 r8=[r15],16 // r8 mov ar.rsc=r27 nop 0 @@ -448,13 +448,13 @@ { .mmi ld8 r9=[r14] // r9 ld8 r10=[r15] // r10 - nop 0 + dep r26=-1,r26,19,1 // Set psr.dfh ;; } { .mmi loadrs mov r14=ar.k5 - dep r26=-1,r26,19,1 // Set psr.dfh + mov sp=r16 ;; } { .mmi