added 386 trap frame redefinition, only used in procxmit()
authorWilliam Nesheim <william@ucbvax.Berkeley.EDU>
Wed, 9 Jan 1991 10:36:27 +0000 (02:36 -0800)
committerWilliam Nesheim <william@ucbvax.Berkeley.EDU>
Wed, 9 Jan 1991 10:36:27 +0000 (02:36 -0800)
SCCS-vsn: sys/kern/sys_process.c 7.15

usr/src/sys/kern/sys_process.c

index 3aa6303..25e423e 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)sys_process.c       7.14 (Berkeley) %G%
+ *     @(#)sys_process.c       7.15 (Berkeley) %G%
  */
 
 #define IPCREG
  */
 
 #define IPCREG
@@ -85,6 +85,19 @@ ptrace(curp, uap, retval)
 
 #define        PHYSOFF(p, o) \
        ((physadr)(p)+((o)/sizeof(((physadr)0)->r[0])))
 
 #define        PHYSOFF(p, o) \
        ((physadr)(p)+((o)/sizeof(((physadr)0)->r[0])))
+#if defined(i386)
+#undef        PC
+#undef        SP
+#undef        PS
+#undef        R0
+#undef        R1
+
+#define       PC      tEIP
+#define       SP      tESP
+#define       PS      tEFLAGS
+#define       R0      tEDX
+#define       R1      tECX
+#endif
 
 /*
  * Code that the child process
 
 /*
  * Code that the child process