Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/include bus_space_handle_t:



details:   https://anonhg.NetBSD.org/src/rev/8fe8c696d59c
branches:  trunk
changeset: 749608:8fe8c696d59c
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Fri Dec 04 12:22:16 2009 +0000

description:
bus_space_handle_t:
- make _asi and _sasi unsigned to reduce superfluous codes by sign extension.
- remove unused member _virtual.

diffstat:

 sys/arch/sparc64/include/bus.h |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 92e721f4eaef -r 8fe8c696d59c sys/arch/sparc64/include/bus.h
--- a/sys/arch/sparc64/include/bus.h    Fri Dec 04 11:55:01 2009 +0000
+++ b/sys/arch/sparc64/include/bus.h    Fri Dec 04 12:22:16 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus.h,v 1.59 2009/06/01 01:14:06 macallan Exp $        */
+/*     $NetBSD: bus.h,v 1.60 2009/12/04 12:22:16 nakayama Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -101,9 +101,8 @@
  */
 typedef        struct _bus_space_handle {
        uint64_t _ptr;
-       int8_t   _asi;
-       int8_t   _sasi;
-       char     _virtual;
+       uint8_t  _asi;
+       uint8_t  _sasi;
 } bus_space_handle_t;
 typedef enum bus_type  bus_type_t;
 typedef u_int64_t      bus_addr_t;



Home | Main Index | Thread Index | Old Index