From owner-p4-projects@FreeBSD.ORG Fri Apr 25 16:04:08 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7D2D037B404; Fri, 25 Apr 2003 16:04:07 -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 2DAF137B401 for ; Fri, 25 Apr 2003 16:04:07 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCAD443F75 for ; Fri, 25 Apr 2003 16:04:06 -0700 (PDT) (envelope-from peter@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 h3PN460U011551 for ; Fri, 25 Apr 2003 16:04:06 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3PN4658011543 for perforce@freebsd.org; Fri, 25 Apr 2003 16:04:06 -0700 (PDT) Date: Fri, 25 Apr 2003 16:04:06 -0700 (PDT) Message-Id: <200304252304.h3PN4658011543@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Subject: PERFORCE change 29746 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: Fri, 25 Apr 2003 23:04:09 -0000 http://perforce.freebsd.org/chv.cgi?CH=29746 Change 29746 by peter@peter_daintree on 2003/04/25 16:03:09 use PCB_FULLCTX to cause fast_syscall to restore a full frame via doreti. eg: in response to *context or sigreturn(2). Affected files ... .. //depot/projects/hammer/sys/x86_64/x86_64/exception.s#28 edit .. //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#84 edit Differences ... ==== //depot/projects/hammer/sys/x86_64/x86_64/exception.s#28 (text+ko) ==== @@ -227,6 +227,9 @@ movq PCPU(SCRATCH_RSP),%r12 /* %r12 already saved */ movq %r12,TF_RSP(%rsp) /* user stack pointer */ call syscall + movq PCPU(CURPCB),%rax + testq $PCB_FULLCTX,PCB_FLAGS(%rax) + jnz doreti_ast /* simplified from doreti */ 1: /* Check for and handle AST's on return to userland */ cli ==== //depot/projects/hammer/sys/x86_64/x86_64/machdep.c#84 (text+ko) ==== @@ -384,6 +384,7 @@ SIG_CANTMASK(td->td_sigmask); signotify(td); PROC_UNLOCK(p); + td->td_pcb->pcb_flags |= PCB_FULLCTX; return (EJUSTRETURN); }