Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Add a KASSERT() to verify the pcb i...
details: https://anonhg.NetBSD.org/src/rev/0feb158ff03a
branches: trunk
changeset: 553484:0feb158ff03a
user: matt <matt%NetBSD.org@localhost>
date: Fri Oct 17 19:56:18 2003 +0000
description:
Add a KASSERT() to verify the pcb is not NULL.
diffstat:
sys/arch/powerpc/powerpc/trap.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 224d3af8867c -r 0feb158ff03a sys/arch/powerpc/powerpc/trap.c
--- a/sys/arch/powerpc/powerpc/trap.c Fri Oct 17 19:22:58 2003 +0000
+++ b/sys/arch/powerpc/powerpc/trap.c Fri Oct 17 19:56:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.90 2003/10/08 00:28:42 thorpej Exp $ */
+/* $NetBSD: trap.c,v 1.91 2003/10/17 19:56:18 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.90 2003/10/08 00:28:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.91 2003/10/17 19:56:18 matt Exp $");
#include "opt_altivec.h"
#include "opt_ddb.h"
@@ -487,6 +487,7 @@
{
struct pcb *pcb = curpcb;
vaddr_t p;
+ KASSERT(pcb != NULL);
KASSERT(pcb->pcb_kmapsr == 0);
pcb->pcb_kmapsr = USER_SR;
pcb->pcb_umapsr = uva >> ADDR_SR_SHFT;
Home |
Main Index |
Thread Index |
Old Index