PERFORCE change 38835 for review
Peter Wemm
peter at FreeBSD.org
Mon Sep 29 19:36:00 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=38835
Change 38835 by peter at 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 */
More information about the p4-projects
mailing list