-#define NEED_MINMAX /* need {,i,l,ul}{min,max} functions */
-#undef NEED_FFS /* don't need ffs function */
-#define NEED_BCMP /* need bcmp function */
-#define NEED_STRLEN /* need strlen function */
-
-#define cpu_exec(p) /* nothing */
-#define cpu_wait(p) /* nothing */
-#define cpu_setstack(p, ap) ((p)->p_md.md_tf->tf_out[6] = (ap) - 64)
+#define cpu_set_init_frame(p, fp) \
+ (p)->p_md.md_tf = (struct trapframe *) \
+ ((caddr_t)(p)->p_addr + UPAGES * NBPG - sizeof(struct trapframe))