From owner-p4-projects@FreeBSD.ORG Fri Apr 25 16:02:05 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 57AA837B404; Fri, 25 Apr 2003 16:02:04 -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 0AC2837B401 for ; Fri, 25 Apr 2003 16:02:04 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8A8543FA3 for ; Fri, 25 Apr 2003 16:02:03 -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 h3PN230U008779 for ; Fri, 25 Apr 2003 16:02:03 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3PN23r2008772 for perforce@freebsd.org; Fri, 25 Apr 2003 16:02:03 -0700 (PDT) Date: Fri, 25 Apr 2003 16:02:03 -0700 (PDT) Message-Id: <200304252302.h3PN23r2008772@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 29745 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:02:05 -0000 http://perforce.freebsd.org/chv.cgi?CH=29745 Change 29745 by peter@peter_daintree on 2003/04/25 16:01:39 Add a pcb flag to indicate that a full trapframe restore is required, even from syscall.. eg: a sigreturn(2). I'm not sure if this is the right place for it. mdthread perhaps? Anyway, it'll do for now. Affected files ... .. //depot/projects/hammer/sys/x86_64/include/pcb.h#13 edit .. //depot/projects/hammer/sys/x86_64/x86_64/genassym.c#24 edit Differences ... ==== //depot/projects/hammer/sys/x86_64/include/pcb.h#13 (text+ko) ==== @@ -60,8 +60,9 @@ struct savefpu pcb_save; u_long pcb_flags; -#define PCB_NPXTRAP 0x04 /* npx trap pending */ -#define PCB_NPXINITDONE 0x08 /* fpu state is initialized */ +#define PCB_NPXTRAP 0x01 /* npx trap pending */ +#define PCB_NPXINITDONE 0x02 /* fpu state is initialized */ +#define PCB_FULLCTX 0x04 /* full context restore on sysret */ caddr_t pcb_onfault; /* copyin/out fault recovery */ }; ==== //depot/projects/hammer/sys/x86_64/x86_64/genassym.c#24 (text+ko) ==== @@ -122,6 +122,7 @@ ASSYM(PCB_RFLAGS, offsetof(struct pcb, pcb_rflags)); ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags)); +ASSYM(PCB_FULLCTX, PCB_FULLCTX); ASSYM(PCB_SAVEFPU, offsetof(struct pcb, pcb_save)); ASSYM(PCB_SAVEFPU_SIZE, sizeof(struct savefpu)); ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));