Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/include use __paddr_t since this is a userlan...



details:   https://anonhg.NetBSD.org/src/rev/e1f57f71809d
branches:  trunk
changeset: 343190:e1f57f71809d
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 24 16:47:50 2016 +0000

description:
use __paddr_t since this is a userland API.

diffstat:

 sys/arch/alpha/include/bus_user.h |   6 +++---
 sys/arch/alpha/include/types.h    |  14 ++++++++------
 2 files changed, 11 insertions(+), 9 deletions(-)

diffs (59 lines):

diff -r 94c7265c53f1 -r e1f57f71809d sys/arch/alpha/include/bus_user.h
--- a/sys/arch/alpha/include/bus_user.h Sun Jan 24 16:47:32 2016 +0000
+++ b/sys/arch/alpha/include/bus_user.h Sun Jan 24 16:47:50 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_user.h,v 1.1 2011/08/12 22:23:12 dyoung Exp $ */
+/* $NetBSD: bus_user.h,v 1.2 2016/01/24 16:47:50 christos Exp $ */
 /*
  * XXX This file is a stopgap intended to keep NetBSD/alpha buildable
  * XXX while developers figure out whether/how to expose to userland
@@ -24,8 +24,8 @@
 struct alpha_bus_space_translation {
        bus_addr_t      abst_bus_start; /* start of bus window */
        bus_addr_t      abst_bus_end;   /* end of bus window */
-       paddr_t         abst_sys_start; /* start of sysBus window */
-       paddr_t         abst_sys_end;   /* end of sysBus window */
+       __paddr_t       abst_sys_start; /* start of sysBus window */
+       __paddr_t       abst_sys_end;   /* end of sysBus window */
        int             abst_addr_shift;/* address shift */
        int             abst_size_shift;/* size shift */
        int             abst_flags;     /* flags; see below */
diff -r 94c7265c53f1 -r e1f57f71809d sys/arch/alpha/include/types.h
--- a/sys/arch/alpha/include/types.h    Sun Jan 24 16:47:32 2016 +0000
+++ b/sys/arch/alpha/include/types.h    Sun Jan 24 16:47:50 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.53 2016/01/23 22:31:19 christos Exp $ */
+/* $NetBSD: types.h,v 1.54 2016/01/24 16:47:50 christos Exp $ */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -44,8 +44,13 @@
 } label_t;
 #endif
 
+typedef        int             __cpu_simple_lock_nv_t;
+typedef long int       __register_t;
+typedef unsigned long  __paddr_t;      /* XXX: For bus_user.h */
+
+
 #if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
-typedef unsigned long  paddr_t;
+typedef __paddr_t      paddr_t;
 typedef unsigned long  psize_t;
 typedef unsigned long  vaddr_t;
 typedef unsigned long  vsize_t;
@@ -56,13 +61,10 @@
 #define        PRIxVSIZE       "lx"
 #define        PRIuVSIZE       "lu"
 
-typedef long int       register_t;
+typedef __register_t   register_t;
 #define        PRIxREGISTER    "lx"
 #endif
 
-typedef        int             __cpu_simple_lock_nv_t;
-typedef long int       __register_t;
-
 #define        __SIMPLELOCK_LOCKED     1
 #define        __SIMPLELOCK_UNLOCKED   0
 



Home | Main Index | Thread Index | Old Index