Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Sep 2003 19:35:58 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 38835 for review
Message-ID:  <200309300235.h8U2Zw49031124@repoman.freebsd.org>

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

Change 38835 by peter@peter_hammer on 2003/09/29 19:35:12

	collect SEL_RPL_MASK in one place and export it to assym.s
	It is used in every PUSH_FRAME

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/exception.S#19 edit
.. //depot/projects/hammer/sys/amd64/amd64/genassym.c#22 edit
.. //depot/projects/hammer/sys/amd64/include/segments.h#12 edit

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/exception.S#19 (text+ko) ====

@@ -40,8 +40,6 @@
 
 #include "assym.s"
 
-#define	SEL_RPL_MASK	0x0003
-
 	.text
 
 /*****************************************************************************/

==== //depot/projects/hammer/sys/amd64/amd64/genassym.c#22 (text+ko) ====

@@ -74,6 +74,7 @@
 #include <machine/sigframe.h>
 #include <machine/proc.h>
 #include <machine/specialreg.h>
+#include <machine/segments.h>
 
 ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
@@ -207,6 +208,7 @@
 ASSYM(KUCSEL, GSEL(GUCODE_SEL, SEL_UPL));
 ASSYM(KUDSEL, GSEL(GUDATA_SEL, SEL_UPL));
 ASSYM(KUC32SEL, GSEL(GUCODE32_SEL, SEL_UPL));
+ASSYM(SEL_RPL_MASK, SEL_RPL_MASK);
 
 ASSYM(MSR_FSBASE, MSR_FSBASE);
 ASSYM(MSR_GSBASE, MSR_GSBASE);

==== //depot/projects/hammer/sys/amd64/include/segments.h#12 (text+ko) ====

@@ -49,6 +49,7 @@
  * Selectors
  */
 
+#define	SEL_RPL_MASK	3	/* requester priv level */
 #define	ISPL(s)	((s)&3)		/* what is the priority level of a selector */
 #define	SEL_KPL	0		/* kernel priority level */
 #define	SEL_UPL	3		/* user priority level */



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