PERFORCE change 29730 for review
Peter Wemm
peter at FreeBSD.org
Fri Apr 25 14:10:40 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=29730
Change 29730 by peter at peter_daintree on 2003/04/25 14:10:23
Add a pcpu variable for storing the user stack pointer during a
syscall instruction. All the scratch registers are used up :-(.
Affected files ...
.. //depot/projects/hammer/sys/x86_64/include/pcpu.h#9 edit
.. //depot/projects/hammer/sys/x86_64/x86_64/genassym.c#23 edit
Differences ...
==== //depot/projects/hammer/sys/x86_64/include/pcpu.h#9 (text+ko) ====
@@ -39,7 +39,8 @@
* other processors"
*/
#define PCPU_MD_FIELDS \
- struct pcpu *pc_prvspace; /* Self-reference */ \
+ struct pcpu *pc_prvspace; /* Self-reference */ \
+ register_t pc_scratch_rsp; /* User %rsp in syscall */
#if defined(lint)
==== //depot/projects/hammer/sys/x86_64/x86_64/genassym.c#23 (text+ko) ====
@@ -168,6 +168,7 @@
ASSYM(PC_IDLETHREAD, offsetof(struct pcpu, pc_idlethread));
ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb));
ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid));
+ASSYM(PC_SCRATCH_RSP, offsetof(struct pcpu, pc_scratch_rsp));
ASSYM(KCSEL, GSEL(GCODE_SEL, SEL_KPL));
ASSYM(KDSEL, GSEL(GDATA_SEL, SEL_KPL));
More information about the p4-projects
mailing list