Date: Fri, 25 Apr 2003 16:02:03 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 29745 for review Message-ID: <200304252302.h3PN23r2008772@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304252302.h3PN23r2008772>