From b81e2fa5c55736422a7af340da0c8cae4c8c17bf Mon Sep 17 00:00:00 2001 From: yamt Date: Fri, 16 Jan 2004 12:43:16 +0000 Subject: [PATCH] uvm_coredump_walkmap: use UVM_OBJ_IS_DEVICE macro. --- sys/uvm/uvm_glue.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/uvm/uvm_glue.c b/sys/uvm/uvm_glue.c index ca98539341a1..5e06cc06d143 100644 --- a/sys/uvm/uvm_glue.c +++ b/sys/uvm/uvm_glue.c @@ -1,4 +1,4 @@ -/* $NetBSD: uvm_glue.c,v 1.75 2004/01/04 11:33:32 jdolecek Exp $ */ +/* $NetBSD: uvm_glue.c,v 1.76 2004/01/16 12:43:16 yamt Exp $ */ /* * Copyright (c) 1997 Charles D. Cranor and Washington University. @@ -67,7 +67,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.75 2004/01/04 11:33:32 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uvm_glue.c,v 1.76 2004/01/16 12:43:16 yamt Exp $"); #include "opt_kgdb.h" #include "opt_kstack.h" @@ -747,7 +747,7 @@ uvm_coredump_walkmap(p, vp, cred, func, cookie) state.flags |= UVM_COREDUMP_NODUMP; if (entry->object.uvm_obj != NULL && - entry->object.uvm_obj->pgops == &uvm_deviceops) + UVM_OBJ_IS_DEVICE(entry->object.uvm_obj)) state.flags |= UVM_COREDUMP_NODUMP; vm_map_unlock_read(map);