summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authornakayama <nakayama@NetBSD.org>2009-03-11 13:29:44 +0000
committernakayama <nakayama@NetBSD.org>2009-03-11 13:29:44 +0000
commit3a99fdb32897405fac00485bb36889b07e5dfd76 (patch)
treedc084f899ad7520aa91a510266e0becdd9c3be33 /sys/ddb/db_command.c
parentb9c2a5054c0dfc55b4e1c7a4b0ae9fe75369e424 (diff)
Avoid "warning: cast from pointer to integer of different size"
on 32-bit sparc64 kernels.
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index fe1ae2a9077..16aa5a3d91a 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $NetBSD: db_command.c,v 1.129 2009/03/07 22:02:17 ad Exp $ */
+/* $NetBSD: db_command.c,v 1.130 2009/03/11 13:29:44 nakayama Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.129 2009/03/07 22:02:17 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.130 2009/03/11 13:29:44 nakayama Exp $");
#ifdef _KERNEL_OPT
#include "opt_aio.h"
@@ -972,7 +972,7 @@ db_map_print_cmd(db_expr_t addr, bool have_addr, db_expr_t count,
full = true;
if (have_addr == false)
- addr = (db_expr_t)db_read_ptr("kernel_map");
+ addr = (db_expr_t)(uintptr_t)db_read_ptr("kernel_map");
#ifdef _KERNEL
uvm_map_printit((struct vm_map *)(uintptr_t) addr, full, db_printf);