From 48f28cea9ea52ef95377d83f8eab976d68ea927b Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 20 Oct 2003 07:15:26 +0000 Subject: [PATCH] sa_vp_faultaddr, sa_vp_ofaultaddr, sa_vp_stacks_low, and sa_vp_stacks_high are vaddr_t (and thus unsigned long). Initialize them with 0 instead of NULL. Closes PR 23204 by Dheeraj Reddy. --- sys/kern/kern_sa.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/kern/kern_sa.c b/sys/kern/kern_sa.c index 2ceb7a30bd0a..f8685efe4845 100644 --- a/sys/kern/kern_sa.c +++ b/sys/kern/kern_sa.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_sa.c,v 1.26 2003/10/01 14:50:06 cl Exp $ */ +/* $NetBSD: kern_sa.c,v 1.27 2003/10/20 07:15:26 wiz Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_sa.c,v 1.26 2003/10/01 14:50:06 cl Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_sa.c,v 1.27 2003/10/20 07:15:26 wiz Exp $"); #include #include @@ -158,10 +158,10 @@ sys_sa_register(struct lwp *l, void *v, register_t *retval) sa->sa_stacks = malloc(sizeof(stack_t) * SA_NUMSTACKS, M_SA, M_WAITOK); sa->sa_nstacks = 0; - sa->sa_vp_faultaddr = NULL; - sa->sa_vp_ofaultaddr = NULL; - sa->sa_vp_stacks_low = NULL; - sa->sa_vp_stacks_high = NULL; + sa->sa_vp_faultaddr = 0; + sa->sa_vp_ofaultaddr = 0; + sa->sa_vp_stacks_low = 0; + sa->sa_vp_stacks_high = 0; LIST_INIT(&sa->sa_lwpcache); SIMPLEQ_INIT(&sa->sa_upcalls); p->p_sa = sa;