Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Change some type-punning detected by gcc ...
details: https://anonhg.NetBSD.org/src/rev/a7a74ffd899b
branches: trunk
changeset: 552180:a7a74ffd899b
user: matt <matt%NetBSD.org@localhost>
date: Sun Sep 21 00:26:09 2003 +0000
description:
Change some type-punning detected by gcc 3.3.1 to (void *).
diffstat:
sys/arch/arm/arm32/arm32_machdep.c | 6 +++---
sys/arch/arm/arm32/pmap.c | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (57 lines):
diff -r 553844bbf90e -r a7a74ffd899b sys/arch/arm/arm32/arm32_machdep.c
--- a/sys/arch/arm/arm32/arm32_machdep.c Sun Sep 21 00:19:31 2003 +0000
+++ b/sys/arch/arm/arm32/arm32_machdep.c Sun Sep 21 00:26:09 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arm32_machdep.c,v 1.37 2003/07/15 00:24:40 lukem Exp $ */
+/* $NetBSD: arm32_machdep.c,v 1.38 2003/09/21 00:26:09 matt Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.37 2003/07/15 00:24:40 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.38 2003/09/21 00:26:09 matt Exp $");
#include "opt_md.h"
#include "opt_pmap_debug.h"
@@ -267,7 +267,7 @@
* in that they usually occupy more virtual memory than physical.
*/
bufsize = MAXBSIZE * nbuf;
- if (uvm_map(kernel_map, (vaddr_t *)&buffers, round_page(bufsize),
+ if (uvm_map(kernel_map, (void *)&buffers, round_page(bufsize),
NULL, UVM_UNKNOWN_OFFSET, 0,
UVM_MAPFLAG(UVM_PROT_NONE, UVM_PROT_NONE, UVM_INH_NONE,
UVM_ADV_NORMAL, 0)) != 0)
diff -r 553844bbf90e -r a7a74ffd899b sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Sun Sep 21 00:19:31 2003 +0000
+++ b/sys/arch/arm/arm32/pmap.c Sun Sep 21 00:26:09 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.138 2003/09/06 09:44:10 rearnsha Exp $ */
+/* $NetBSD: pmap.c,v 1.139 2003/09/21 00:26:09 matt Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -212,7 +212,7 @@
#include <machine/param.h>
#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.138 2003/09/06 09:44:10 rearnsha Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.139 2003/09/21 00:26:09 matt Exp $");
#ifdef PMAP_DEBUG
#define PDEBUG(_lev_,_stat_) \
@@ -3923,9 +3923,9 @@
pmap_set_pt_cache_mode(kernel_l1pt, (vaddr_t)csrc_pte);
pmap_alloc_specials(&virtual_avail, 1, &cdstp, &cdst_pte);
pmap_set_pt_cache_mode(kernel_l1pt, (vaddr_t)cdst_pte);
- pmap_alloc_specials(&virtual_avail, 1, (vaddr_t *)&memhook, NULL);
+ pmap_alloc_specials(&virtual_avail, 1, (void *)&memhook, NULL);
pmap_alloc_specials(&virtual_avail, round_page(MSGBUFSIZE) / PAGE_SIZE,
- (vaddr_t *)&msgbufaddr, NULL);
+ (void *)&msgbufaddr, NULL);
/*
* Allocate a range of kernel virtual address space to be used
Home |
Main Index |
Thread Index |
Old Index