summaryrefslogtreecommitdiff
path: root/sys/arch/m68k
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-23 05:40:58 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-23 05:40:58 +0000
commit75ee6c031587752e6b201702ecb924885876179b (patch)
treecd6b69b3a999c27902718f652689866d6fc3d314 /sys/arch/m68k
parentef884a0c5a5bf0d52c25193e6cecfcf8f00f16ff (diff)
Only mips uses cpu_set_init_frame (and it shouldn't)
Diffstat (limited to 'sys/arch/m68k')
-rw-r--r--sys/arch/m68k/m68k/process_machdep.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/m68k/m68k/process_machdep.c b/sys/arch/m68k/m68k/process_machdep.c
index 7ce95c41b44..e5ab757693b 100644
--- a/sys/arch/m68k/m68k/process_machdep.c
+++ b/sys/arch/m68k/m68k/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.3 1997/01/19 03:14:12 briggs Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.4 2001/06/23 05:40:57 art Exp $ */
/* $NetBSD: process_machdep.c,v 1.17 1996/05/06 20:05:24 gwr Exp $ */
/*
@@ -63,9 +63,6 @@
#include <machine/psl.h>
#include <machine/reg.h>
-#ifdef cpu_set_init_frame
-extern char kstack[]; /* XXX */
-#endif
static __inline struct frame *process_frame __P((struct proc *p));
static __inline struct fpframe *process_fpframe __P((struct proc *p));
@@ -75,11 +72,8 @@ process_frame(p)
{
void *ptr;
-#ifdef cpu_set_init_frame
- ptr = (char *)p->p_addr + ((char *)p->p_md.md_regs - (char *)kstack);
-#else
ptr = p->p_md.md_regs;
-#endif
+
return (ptr);
}