diff options
| author | nakayama <nakayama@NetBSD.org> | 2009-03-11 13:29:44 +0000 |
|---|---|---|
| committer | nakayama <nakayama@NetBSD.org> | 2009-03-11 13:29:44 +0000 |
| commit | 3a99fdb32897405fac00485bb36889b07e5dfd76 (patch) | |
| tree | dc084f899ad7520aa91a510266e0becdd9c3be33 /sys/ddb/db_command.c | |
| parent | b9c2a5054c0dfc55b4e1c7a4b0ae9fe75369e424 (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.c | 6 |
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); |
