Module Name: src Committed By: matt Date: Sun Sep 6 23:01:59 UTC 2009
Modified Files: src/sys/arch/mips/mips [matt-nb5-mips64]: db_interface.c Log Message: Use VM_MIN_KERNEL_ADDRESS and VM_MAX_KERNEL_ADDRESS instead of MIPS_KSEG2_START To generate a diff of this commit: cvs rdiff -u -r1.64.16.2 -r1.64.16.3 src/sys/arch/mips/mips/db_interface.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/mips/db_interface.c diff -u src/sys/arch/mips/mips/db_interface.c:1.64.16.2 src/sys/arch/mips/mips/db_interface.c:1.64.16.3 --- src/sys/arch/mips/mips/db_interface.c:1.64.16.2 Sun Aug 23 03:25:09 2009 +++ src/sys/arch/mips/mips/db_interface.c Sun Sep 6 23:01:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: db_interface.c,v 1.64.16.2 2009/08/23 03:25:09 matt Exp $ */ +/* $NetBSD: db_interface.c,v 1.64.16.3 2009/09/06 23:01:59 matt Exp $ */ /* * Mach Operating System @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.64.16.2 2009/08/23 03:25:09 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.64.16.3 2009/09/06 23:01:59 matt Exp $"); #include "opt_cputype.h" /* which mips CPUs do we support? */ #include "opt_ddb.h" @@ -393,7 +393,7 @@ if (!have_addr) return; - if (MIPS_KSEG2_START <= addr) { + if (VM_MIN_KERNEL_ADDRESS <= addr && addr < VM_MAX_KERNEL_ADDRESS) { /* * Cast the physical address -- some platforms, while * being ILP32, may be using 64-bit paddr_t's.