Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Use uintptr_t & size_t instead of u_int and int for arm_sync...
details: https://anonhg.NetBSD.org/src/rev/36d3c59ec055
branches: trunk
changeset: 326051:36d3c59ec055
user: matt <matt%NetBSD.org@localhost>
date: Thu Jan 16 21:48:41 2014 +0000
description:
Use uintptr_t & size_t instead of u_int and int for arm_sync_icache.
diffstat:
lib/libarch/arm/arm_sync_icache.2 | 6 +++---
lib/libarch/arm/arm_sync_icache.c | 6 ++----
sys/arch/arm/include/sysarch.h | 4 ++--
3 files changed, 7 insertions(+), 9 deletions(-)
diffs (65 lines):
diff -r 7cf75a3b1ad4 -r 36d3c59ec055 lib/libarch/arm/arm_sync_icache.2
--- a/lib/libarch/arm/arm_sync_icache.2 Thu Jan 16 21:02:30 2014 +0000
+++ b/lib/libarch/arm/arm_sync_icache.2 Thu Jan 16 21:48:41 2014 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: arm_sync_icache.2,v 1.5 2004/02/13 09:56:47 wiz Exp $
+.\" $NetBSD: arm_sync_icache.2,v 1.6 2014/01/16 21:48:41 matt Exp $
.\"
.\" Copyright (c) 1996 Mark Brinicombe
.\" All rights reserved.
@@ -30,7 +30,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd March 29, 2002
+.Dd January 17, 2014
.Dt ARM_SYNC_ICACHE 2 arm
.Os
.Sh NAME
@@ -41,7 +41,7 @@
.Sh SYNOPSIS
.In machine/sysarch.h
.Ft int
-.Fn arm_sync_icache "u_int addr" "int len"
+.Fn arm_sync_icache "uintptr_t addr" "size_t len"
.Sh DESCRIPTION
.Fn arm_sync_icache
will make sure that all the entries in the processor instruction cache
diff -r 7cf75a3b1ad4 -r 36d3c59ec055 lib/libarch/arm/arm_sync_icache.c
--- a/lib/libarch/arm/arm_sync_icache.c Thu Jan 16 21:02:30 2014 +0000
+++ b/lib/libarch/arm/arm_sync_icache.c Thu Jan 16 21:48:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: arm_sync_icache.c,v 1.1 2002/03/30 06:24:34 thorpej Exp $ */
+/* $NetBSD: arm_sync_icache.c,v 1.2 2014/01/16 21:48:41 matt Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe.
@@ -38,9 +38,7 @@
#include <machine/sysarch.h>
int
-arm_sync_icache(addr, len)
- u_int addr;
- int len;
+arm_sync_icache(uintptr_t addr, size_t len)
{
struct arm_sync_icache_args p;
diff -r 7cf75a3b1ad4 -r 36d3c59ec055 sys/arch/arm/include/sysarch.h
--- a/sys/arch/arm/include/sysarch.h Thu Jan 16 21:02:30 2014 +0000
+++ b/sys/arch/arm/include/sysarch.h Thu Jan 16 21:48:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysarch.h,v 1.10 2013/02/01 15:23:11 matt Exp $ */
+/* $NetBSD: sysarch.h,v 1.11 2014/01/16 21:48:41 matt Exp $ */
/*
* Copyright (c) 1996-1997 Mark Brinicombe.
@@ -70,7 +70,7 @@
#ifndef _KERNEL
__BEGIN_DECLS
-int arm_sync_icache(u_int addr, int len);
+int arm_sync_icache(uintptr_t, size_t);
int arm_drain_writebuf(void);
int sysarch(int, void *);
__END_DECLS
Home |
Main Index |
Thread Index |
Old Index