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

usr/src/sys/news3400/include/cpu.h
usr/src/sys/sparc/include/cpu.h

index 065e1cd..4d7e123 100644 (file)
@@ -8,7 +8,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)cpu.h       7.4 (Berkeley) %G%
+ *     @(#)cpu.h       7.5 (Berkeley) %G%
  */
 
 #ifndef _CPU_H_
  */
 
 #ifndef _CPU_H_
  */
 #define        COPY_SIGCODE            /* copy sigcode above user stack in exec */
 
  */
 #define        COPY_SIGCODE            /* copy sigcode above user stack in exec */
 
-#define        cpu_exec(p)     (p->p_md.md_ss_addr = 0) /* init single step */
-#define        cpu_wait(p)     /* nothing */
-#define cpu_setstack(p, ap) \
-       (p)->p_md.md_regs[SP] = ap
+#define        cpu_exec(p)             (p->p_md.md_ss_addr = 0) /* init single step */
+#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 b090a3f..8687127 100644 (file)
@@ -13,7 +13,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)cpu.h       8.2 (Berkeley) %G%
+ *     @(#)cpu.h       8.3 (Berkeley) %G%
  *
  * from: $Header: cpu.h,v 1.12 93/05/25 10:36:34 torek Exp $ (LBL)
  */
  *
  * from: $Header: cpu.h,v 1.12 93/05/25 10:36:34 torek Exp $ (LBL)
  */