Fix fallout from vm_anon changes

This commit is contained in:
jmc 2005-05-11 17:41:52 +00:00
parent cd80d2a69d
commit 2c8974a914
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kvm_proc.c,v 1.58 2004/05/12 17:20:01 toshii Exp $ */ /* $NetBSD: kvm_proc.c,v 1.59 2005/05/11 17:41:52 jmc Exp $ */
/*- /*-
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -74,7 +74,7 @@
#if 0 #if 0
static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93"; static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
#else #else
__RCSID("$NetBSD: kvm_proc.c,v 1.58 2004/05/12 17:20:01 toshii Exp $"); __RCSID("$NetBSD: kvm_proc.c,v 1.59 2005/05/11 17:41:52 jmc Exp $");
#endif #endif
#endif /* LIBC_SCCS and not lint */ #endif /* LIBC_SCCS and not lint */
@ -242,7 +242,7 @@ _kvm_ureadm(kd, p, va, cnt)
if (KREAD(kd, addr, &anon)) if (KREAD(kd, addr, &anon))
return (NULL); return (NULL);
addr = (u_long)anon.u.an_page; addr = (u_long)anon.an_page;
if (addr) { if (addr) {
if (KREAD(kd, addr, &pg)) if (KREAD(kd, addr, &pg))
return (NULL); return (NULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.25 2005/02/11 02:12:03 chs Exp $ */ /* $NetBSD: pmap.c,v 1.26 2005/05/11 17:41:52 jmc Exp $ */
/* /*
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc. * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@ -38,7 +38,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
__RCSID("$NetBSD: pmap.c,v 1.25 2005/02/11 02:12:03 chs Exp $"); __RCSID("$NetBSD: pmap.c,v 1.26 2005/05/11 17:41:52 jmc Exp $");
#endif #endif
#include <string.h> #include <string.h>
@ -690,8 +690,8 @@ dump_vm_anon(kvm_t *kd, struct vm_anon **alist, int i)
else else
KDEREF(kd, anon); KDEREF(kd, anon);
printf(" = { an_ref = %d, an_lock = <struct simplelock>, an_nxt/an_page = %p, an_swslot = %d }", printf(" = { an_ref = %d, an_lock = <struct simplelock>, an_page = %p, an_swslot = %d }",
D(anon, anon)->an_ref, D(anon, anon)->u.an_nxt, D(anon, anon)->an_swslot); D(anon, anon)->an_ref, D(anon, anon)->an_page, D(anon, anon)->an_swslot);
} }
printf("\n"); printf("\n");