summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/libsa/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme68k/stand/libsa/panic.c')
-rw-r--r--sys/arch/mvme68k/stand/libsa/panic.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/sys/arch/mvme68k/stand/libsa/panic.c b/sys/arch/mvme68k/stand/libsa/panic.c
deleted file mode 100644
index 6c035aabe11..00000000000
--- a/sys/arch/mvme68k/stand/libsa/panic.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* $OpenBSD: panic.c,v 1.3 1996/04/28 10:49:07 deraadt Exp $ */
-
-#include <stdarg.h>
-#include "stand.h"
-
-extern volatile void abort();
-extern int _estack[];
-
-__dead void
-panic(const char *fmt, ...)
-{
- va_list ap;
-
- va_start(ap, fmt);
- printf(fmt, ap);
- printf("\n");
- va_end(ap);
- stackdump(0);
- abort();
-}
-
-stackdump(dummy)
- int dummy;
-{
- int *ip;
-
- printf("stackdump:\n");
- for (ip = &dummy; ip < _estack; ip += 4) {
- printf("%x: %x %x %x %x\n",
- (int)ip, ip[0], ip[1], ip[2], ip[3]);
- }
-}