Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/hppa curlwp is never NULL now. Sprinkle KASSER...
details: https://anonhg.NetBSD.org/src/rev/f7baf946fd62
branches: trunk
changeset: 750556:f7baf946fd62
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Jan 06 07:38:49 2010 +0000
description:
curlwp is never NULL now. Sprinkle KASSERT just in case.
diffstat:
sys/arch/hppa/hppa/trap.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 8b2252b23e03 -r f7baf946fd62 sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Wed Jan 06 06:30:37 2010 +0000
+++ b/sys/arch/hppa/hppa/trap.c Wed Jan 06 07:38:49 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.63 2009/11/27 20:32:10 skrll Exp $ */
+/* $NetBSD: trap.c,v 1.64 2010/01/06 07:38:49 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.63 2009/11/27 20:32:10 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.64 2010/01/06 07:38:49 skrll Exp $");
/* #define INTRDEBUG */
/* #define TRAPDEBUG */
@@ -512,8 +512,9 @@
vftype = inst_store(opcode) ? VM_PROT_WRITE : VM_PROT_READ;
}
+ KASSERT(curlwp != NULL);
l = curlwp;
- p = l ? l->l_proc : NULL;
+ p = l->l_proc;
if ((type & T_USER) != 0)
LWP_CACHE_CREDS(l, p);
@@ -1093,6 +1094,7 @@
if (!USERMODE(frame->tf_iioq_head))
panic("syscall");
+ KASSERT(curlwp != NULL);
l = curlwp;
p = l->l_proc;
l->l_md.md_regs = frame;
Home |
Main Index |
Thread Index |
Old Index