Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include Add missing PRIuBUSSIZE to mips.



details:   https://anonhg.NetBSD.org/src/rev/8c5fd8ddd059
branches:  trunk
changeset: 374042:8c5fd8ddd059
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Tue Mar 28 10:54:13 2023 +0000

description:
Add missing PRIuBUSSIZE to mips.

diffstat:

 sys/arch/mips/include/bus_space_defs.h |  4 +++-
 sys/arch/mips/include/types.h          |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 8a92d56bb53e -r 8c5fd8ddd059 sys/arch/mips/include/bus_space_defs.h
--- a/sys/arch/mips/include/bus_space_defs.h    Tue Mar 28 00:00:30 2023 +0000
+++ b/sys/arch/mips/include/bus_space_defs.h    Tue Mar 28 10:54:13 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_space_defs.h,v 1.4 2020/07/26 08:08:41 simonb Exp $        */
+/*     $NetBSD: bus_space_defs.h,v 1.5 2023/03/28 10:54:13 nakayama Exp $      */
 
 /*-
  * Copyright (c) 1997, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -112,11 +112,13 @@ typedef int64_t bus_addr_t;
 typedef uint64_t bus_size_t;
 #define        PRIxBUSADDR     PRIx64
 #define        PRIxBUSSIZE     PRIx64
+#define        PRIuBUSSIZE     PRIu64
 #else
 typedef paddr_t bus_addr_t;
 typedef psize_t bus_size_t;
 #define        PRIxBUSADDR     PRIxPADDR
 #define        PRIxBUSSIZE     PRIxPSIZE
+#define        PRIuBUSSIZE     PRIuPSIZE
 #endif
 
 /*
diff -r 8a92d56bb53e -r 8c5fd8ddd059 sys/arch/mips/include/types.h
--- a/sys/arch/mips/include/types.h     Tue Mar 28 00:00:30 2023 +0000
+++ b/sys/arch/mips/include/types.h     Tue Mar 28 10:54:13 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.77 2022/07/07 10:06:02 martin Exp $        */
+/*     $NetBSD: types.h,v 1.78 2023/03/28 10:54:13 nakayama Exp $      */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -74,12 +74,14 @@ typedef __uint64_t  psize_t;
 #define        PRIxPADDR       PRIx64
 #define        PRIxPSIZE       PRIx64
 #define        PRIdPSIZE       PRId64
+#define        PRIuPSIZE       PRIu64
 #else
 typedef __uint32_t     paddr_t;
 typedef __uint32_t     psize_t;
 #define        PRIxPADDR       PRIx32
 #define        PRIxPSIZE       PRIx32
 #define        PRIdPSIZE       PRId32
+#define        PRIuPSIZE       PRIu32
 #endif
 #ifdef _LP64
 typedef __uint64_t     vaddr_t;



Home | Main Index | Thread Index | Old Index