add cpu_set_init_frame to initialize init's syscall frame
[unix-history] / usr / src / sys / i386 / include / cpu.h
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