Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Apr 2003 14:10:38 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 29730 for review
Message-ID:  <200304252110.h3PLAcQu028305@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=29730

Change 29730 by peter@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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304252110.h3PLAcQu028305>