From 660038a96afb1bf211e7d54bbb1b77a8f6f30def Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Thu, 18 May 1995 04:34:12 -0800 Subject: [PATCH] add definition for ability to produce a backtrace SCCS-vsn: sys/hp300/include/cpu.h 8.5 SCCS-vsn: sys/i386/include/cpu.h 8.5 SCCS-vsn: sys/luna68k/include/cpu.h 8.6 SCCS-vsn: sys/news3400/include/cpu.h 8.3 SCCS-vsn: sys/pmax/include/cpu.h 8.5 SCCS-vsn: sys/sparc/include/cpu.h 8.5 --- usr/src/sys/hp300/include/cpu.h | 3 ++- usr/src/sys/i386/include/cpu.h | 3 ++- usr/src/sys/luna68k/include/cpu.h | 3 ++- usr/src/sys/news3400/include/cpu.h | 3 ++- usr/src/sys/pmax/include/cpu.h | 3 ++- usr/src/sys/sparc/include/cpu.h | 3 ++- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/usr/src/sys/hp300/include/cpu.h b/usr/src/sys/hp300/include/cpu.h index df2012881a..83ca4bd4ab 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.4 (Berkeley) %G% + * @(#)cpu.h 8.5 (Berkeley) %G% */ /* @@ -29,6 +29,7 @@ #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 +#define BACKTRACE(p) backtrace(p) /* * 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 b95f9e3e5e..7640cdfac2 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.4 (Berkeley) %G% + * @(#)cpu.h 8.5 (Berkeley) %G% */ /* @@ -26,6 +26,7 @@ #define cpu_swapin(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 +#define BACKTRACE(p) /* not implemented */ /* * 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 e161b173e1..da8a238fc7 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.5 (Berkeley) %G% + * @(#)cpu.h 8.6 (Berkeley) %G% */ /* @@ -32,6 +32,7 @@ #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 +#define BACKTRACE(p) /* not implemented */ /* * Arguments to hardclock and gatherstats encapsulate the previous diff --git a/usr/src/sys/news3400/include/cpu.h b/usr/src/sys/news3400/include/cpu.h index f3743abcc5..1214568814 100644 --- a/usr/src/sys/news3400/include/cpu.h +++ b/usr/src/sys/news3400/include/cpu.h @@ -8,7 +8,7 @@ * * %sccs.include.redist.c% * - * @(#)cpu.h 8.2 (Berkeley) %G% + * @(#)cpu.h 8.3 (Berkeley) %G% */ #ifndef _CPU_H_ @@ -31,6 +31,7 @@ #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 +#define BACKTRACE(p) /* not implemented */ /* * Arguments to hardclock and gatherstats encapsulate the previous diff --git a/usr/src/sys/pmax/include/cpu.h b/usr/src/sys/pmax/include/cpu.h index 9f5fd5058f..58eee76e67 100644 --- a/usr/src/sys/pmax/include/cpu.h +++ b/usr/src/sys/pmax/include/cpu.h @@ -7,7 +7,7 @@ * * %sccs.include.redist.c% * - * @(#)cpu.h 8.4 (Berkeley) %G% + * @(#)cpu.h 8.5 (Berkeley) %G% */ #ifndef _CPU_H_ @@ -29,6 +29,7 @@ #define cpu_wait(p) /* nothing */ #define cpu_setstack(p, ap) (p)->p_md.md_regs[SP] = ap #define cpu_set_init_frame(p, fp) /* nothing */ +#define BACKTRACE(p) /* not implemented */ /* * Arguments to hardclock and gatherstats encapsulate the previous diff --git a/usr/src/sys/sparc/include/cpu.h b/usr/src/sys/sparc/include/cpu.h index 8e4a9661a1..5c716c9364 100644 --- a/usr/src/sys/sparc/include/cpu.h +++ b/usr/src/sys/sparc/include/cpu.h @@ -13,7 +13,7 @@ * * %sccs.include.redist.c% * - * @(#)cpu.h 8.4 (Berkeley) %G% + * @(#)cpu.h 8.5 (Berkeley) %G% * * from: $Header: cpu.h,v 1.12 93/05/25 10:36:34 torek Exp $ (LBL) */ @@ -48,6 +48,7 @@ #define cpu_swapin(p) /* nothing */ #define cpu_wait(p) /* nothing */ #define cpu_setstack(p, ap) ((p)->p_md.md_tf->tf_out[6] = (ap) - 64) +#define BACKTRACE(p) /* not implemented */ /* * See syscall() for an explanation of the following. Note that the -- 2.20.1