Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Cast VM_DEFAULT_ADDRESS() to a caddr_t.
details: https://anonhg.NetBSD.org/src/rev/b52ba665ec43
branches: trunk
changeset: 543378:b52ba665ec43
user: atatat <atatat%NetBSD.org@localhost>
date: Mon Feb 24 00:49:43 2003 +0000
description:
Cast VM_DEFAULT_ADDRESS() to a caddr_t.
diffstat:
sys/arch/mac68k/dev/grf_compat.c | 4 ++--
sys/arch/x68k/dev/grf.c | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r ff66e97d9ce1 -r b52ba665ec43 sys/arch/mac68k/dev/grf_compat.c
--- a/sys/arch/mac68k/dev/grf_compat.c Sun Feb 23 23:46:55 2003 +0000
+++ b/sys/arch/mac68k/dev/grf_compat.c Mon Feb 24 00:49:43 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: grf_compat.c,v 1.11 2003/02/20 22:16:06 atatat Exp $ */
+/* $NetBSD: grf_compat.c,v 1.12 2003/02/24 00:49:43 atatat Exp $ */
/*
* Copyright (C) 1999 Scott Reynolds
@@ -343,7 +343,7 @@
int error, flags;
len = m68k_round_page(sc->sc_dc->dc_offset + sc->sc_dc->dc_size);
- *addrp = VM_DEFAULT_ADDRESS(p->p_vmspace->vm_daddr, len);
+ *addrp = (caddr_t)VM_DEFAULT_ADDRESS(p->p_vmspace->vm_daddr, len);
flags = MAP_SHARED | MAP_FIXED;
vn.v_type = VCHR; /* XXX */
diff -r ff66e97d9ce1 -r b52ba665ec43 sys/arch/x68k/dev/grf.c
--- a/sys/arch/x68k/dev/grf.c Sun Feb 23 23:46:55 2003 +0000
+++ b/sys/arch/x68k/dev/grf.c Mon Feb 24 00:49:43 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: grf.c,v 1.25 2003/02/20 22:16:06 atatat Exp $ */
+/* $NetBSD: grf.c,v 1.26 2003/02/24 00:49:44 atatat Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -555,7 +555,8 @@
if (*addrp)
flags |= MAP_FIXED;
else
- *addrp = VM_DEFAULT_ADDRESS(p->p_vmspace->vm_daddr, len);
+ *addrp =
+ (caddr_t)VM_DEFAULT_ADDRESS(p->p_vmspace->vm_daddr, len);
vn.v_type = VCHR; /* XXX */
vn.v_specinfo = &si; /* XXX */
vn.v_rdev = dev; /* XXX */
Home |
Main Index |
Thread Index |
Old Index