PERFORCE change 29745 for review
Peter Wemm
peter at FreeBSD.org
Fri Apr 25 16:02:05 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=29745
Change 29745 by peter at 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));
More information about the p4-projects
mailing list