add cpu_set_init_frame to initialize init's syscall frame
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 11 Dec 1993 09:45:09 +0000 (01:45 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 11 Dec 1993 09:45:09 +0000 (01:45 -0800)
SCCS-vsn: sys/hp300/include/cpu.h 8.3
SCCS-vsn: sys/i386/include/cpu.h 8.3
SCCS-vsn: sys/luna68k/include/cpu.h 8.4

usr/src/sys/hp300/include/cpu.h
usr/src/sys/i386/include/cpu.h
usr/src/sys/luna68k/include/cpu.h

index 21262a4..ca37b2b 100644 (file)
@@ -11,7 +11,7 @@
  *
  * from: Utah $Hdr: cpu.h 1.16 91/03/25$
  *
  *
  * from: Utah $Hdr: cpu.h 1.16 91/03/25$
  *
- *     @(#)cpu.h       8.2 (Berkeley) %G%
+ *     @(#)cpu.h       8.3 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
  */
 #define        COPY_SIGCODE            /* copy sigcode above user stack in exec */
 
  */
 #define        COPY_SIGCODE            /* copy sigcode above user stack in exec */
 
-#define        cpu_exec(p)     /* nothing */
-#define        cpu_wait(p)     /* nothing */
-#define cpu_setstack(p, ap) \
-       (p)->p_md.md_regs[SP] = ap
+#define        cpu_exec(p)                     /* nothing */
+#define        cpu_wait(p)                     /* nothing */
+#define cpu_setstack(p, ap)            (p)->p_md.md_regs[SP] = ap
+#define cpu_set_init_frame(p, fp)      (p)->p_md.md_regs = fp
 
 /*
  * Arguments to hardclock and gatherstats encapsulate the previous
 
 /*
  * Arguments to hardclock and gatherstats encapsulate the previous
index bcc3124..4a82b13 100644 (file)
@@ -7,7 +7,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)cpu.h       8.2 (Berkeley) %G%
+ *     @(#)cpu.h       8.3 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
  * definitions of cpu-dependent requirements
  * referenced in generic code
  */
  * definitions of cpu-dependent requirements
  * referenced in generic code
  */
-#undef COPY_SIGCODE            /* don't copy sigcode above user stack in exec */
+#undef COPY_SIGCODE    /* don't copy sigcode above user stack in exec */
 
 
-/*
- * function vs. inline configuration;
- * these are defined to get generic functions
- * rather than inline or machine-dependent implementations
- */
-#define        NEED_MINMAX             /* need {,i,l,ul}{min,max} functions */
-#define        NEED_FFS                /* need ffs function */
-#define        NEED_BCMP               /* need bcmp function */
-#define        NEED_STRLEN             /* need strlen function */
-
-#define        cpu_exec(p)     /* nothing */
-#define cpu_setstack(p, ap) \
-       (p)->p_md.md_regs[SP] = ap
+#define        cpu_exec(p)                     /* nothing */
+#define cpu_setstack(p, ap)            (p)->p_md.md_regs[SP] = ap
+#define cpu_set_init_frame(p, fp)      (p)->p_md.md_regs = fp
 
 /*
  * Arguments to hardclock, softclock and gatherstats
 
 /*
  * Arguments to hardclock, softclock and gatherstats
index 239470f..94a0b8b 100644 (file)
@@ -13,7 +13,7 @@
  * from: Utah $Hdr: cpu.h 1.16 91/03/25$
  * from: hp300/include/cpu.h   8.2 (Berkeley) 9/23/93
  *
  * from: Utah $Hdr: cpu.h 1.16 91/03/25$
  * from: hp300/include/cpu.h   8.2 (Berkeley) 9/23/93
  *
- *     @(#)cpu.h       8.3 (Berkeley) %G%
+ *     @(#)cpu.h       8.4 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
  */
 #define        COPY_SIGCODE            /* copy sigcode above user stack in exec */
 
  */
 #define        COPY_SIGCODE            /* copy sigcode above user stack in exec */
 
-#define        cpu_exec(p)     /* nothing */
-#define        cpu_wait(p)     /* nothing */
-#define cpu_setstack(p, ap) \
-       (p)->p_md.md_regs[SP] = ap
+#define        cpu_exec(p)                     /* nothing */
+#define        cpu_wait(p)                     /* nothing */
+#define cpu_setstack(p, ap)            (p)->p_md.md_regs[SP] = ap
+#define cpu_set_init_frame(p, fp)      (p)->p_md.md_regs = fp
 
 /*
  * Arguments to hardclock and gatherstats encapsulate the previous
 
 /*
  * Arguments to hardclock and gatherstats encapsulate the previous