From 5ff7c8570ab09cdf05bd09944407e0996e2fe218 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Sat, 11 Dec 1993 01:45:09 -0800 Subject: [PATCH] add cpu_set_init_frame to initialize init's syscall frame 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 | 10 +++++----- usr/src/sys/i386/include/cpu.h | 20 +++++--------------- usr/src/sys/luna68k/include/cpu.h | 10 +++++----- 3 files changed, 15 insertions(+), 25 deletions(-) diff --git a/usr/src/sys/hp300/include/cpu.h b/usr/src/sys/hp300/include/cpu.h index 21262a4b27..ca37b2b6bb 100644 --- a/usr/src/sys/hp300/include/cpu.h +++ b/usr/src/sys/hp300/include/cpu.h @@ -11,7 +11,7 @@ * * from: Utah $Hdr: cpu.h 1.16 91/03/25$ * - * @(#)cpu.h 8.2 (Berkeley) %G% + * @(#)cpu.h 8.3 (Berkeley) %G% */ /* @@ -24,10 +24,10 @@ */ #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 diff --git a/usr/src/sys/i386/include/cpu.h b/usr/src/sys/i386/include/cpu.h index bcc3124e08..4a82b13662 100644 --- a/usr/src/sys/i386/include/cpu.h +++ b/usr/src/sys/i386/include/cpu.h @@ -7,7 +7,7 @@ * * %sccs.include.redist.c% * - * @(#)cpu.h 8.2 (Berkeley) %G% + * @(#)cpu.h 8.3 (Berkeley) %G% */ /* @@ -20,21 +20,11 @@ * 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 diff --git a/usr/src/sys/luna68k/include/cpu.h b/usr/src/sys/luna68k/include/cpu.h index 239470f10f..94a0b8b7c9 100644 --- a/usr/src/sys/luna68k/include/cpu.h +++ b/usr/src/sys/luna68k/include/cpu.h @@ -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 * - * @(#)cpu.h 8.3 (Berkeley) %G% + * @(#)cpu.h 8.4 (Berkeley) %G% */ /* @@ -27,10 +27,10 @@ */ #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 -- 2.20.1