PERFORCE change 76006 for review

David Xu davidxu at FreeBSD.org
Tue Apr 26 07:07:34 PDT 2005


http://perforce.freebsd.org/chv.cgi?CH=76006

Change 76006 by davidxu at davidxu_tiger on 2005/04/26 14:07:21

	Add a temp stack for sysenter syscall since debug trap and nmi
	can occur before sysenter entry setup its stack.

Affected files ...

.. //depot/projects/davidxu_thread/src/sys/i386/include/pcpu.h#6 edit

Differences ...

==== //depot/projects/davidxu_thread/src/sys/i386/include/pcpu.h#6 (text+ko) ====

@@ -38,6 +38,8 @@
 #include <machine/segments.h>
 #include <machine/tss.h>
 
+#define SYSENTER_STACK_SIZE	63
+
 /*
  * The SMP parts are setup in pmap.c and locore.s for the BSP, and
  * mp_machdep.c sets up the data for the AP's to "see" when they awake.
@@ -55,7 +57,9 @@
 	int	pc_currentldt;						\
 	u_int	pc_acpi_id;						\
 	u_int	pc_apic_id;						\
-	u_int	pc_sysenter_tss_esp0
+	int	pc_sysenter_stack[SYSENTER_STACK_SIZE + 1];
+
+#define pc_sysenter_tss_esp0	pc_sysenter_stack[SYSENTER_STACK_SIZE]
 
 #if defined(lint)
  


More information about the p4-projects mailing list