summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-08-31 06:37:20 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-08-31 06:37:20 +0000
commit3af64f9bc56d3aad0d3665db8e2729ee100a547b (patch)
tree341dc73f48c75f761960d6282e181c942d613304
parentb9ed1fbb98446f63cff7d6d6b568e0b568e31ee5 (diff)
A text fault without curproc is always illegal.
cleanup in debug code.
-rw-r--r--sys/arch/sparc64/sparc64/trap.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/arch/sparc64/sparc64/trap.c b/sys/arch/sparc64/sparc64/trap.c
index c6a2c82db1d..45c0672e28b 100644
--- a/sys/arch/sparc64/sparc64/trap.c
+++ b/sys/arch/sparc64/sparc64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.6 2001/08/25 21:04:38 art Exp $ */
+/* $OpenBSD: trap.c,v 1.7 2001/08/31 06:37:19 art Exp $ */
/* $NetBSD: trap.c,v 1.73 2001/08/09 01:03:01 eeh Exp $ */
/*
@@ -1451,7 +1451,7 @@ text_access_fault(tf, type, pc, sfsr)
uvmexp.traps++;
if ((p = curproc) == NULL) /* safety check */
- p = &proc0;
+ panic("text_access_fault: no curproc\n");
sticks = p->p_sticks;
tstate = tf->tf_tstate;
@@ -1923,16 +1923,11 @@ syscall(tf, code, pc)
callp += code;
#if defined(__arch64__) && !defined(COMPAT_NETBSD32)
-#if 0 /*def DEBUG*/
-#ifdef LKM
- if ((curproc->p_flag & P_32) == 0)
-#endif
{
printf("syscall(): 32-bit stack on a 64-bit kernel????\n");
Debugger();
}
#endif
-#endif
i = (long)callp->sy_argsize / sizeof(register32_t);
if (i > nap) { /* usually false */