Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/include Make paddr_t/psize_t __uint64_t for b...



details:   https://anonhg.NetBSD.org/src/rev/66994c6f830d
branches:  trunk
changeset: 378948:66994c6f830d
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat May 01 06:45:23 2021 +0000

description:
Make paddr_t/psize_t __uint64_t for both 32 and 64 bit ports

diffstat:

 sys/arch/riscv/include/types.h |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r de3f84e05edb -r 66994c6f830d sys/arch/riscv/include/types.h
--- a/sys/arch/riscv/include/types.h    Sat May 01 00:08:44 2021 +0000
+++ b/sys/arch/riscv/include/types.h    Sat May 01 06:45:23 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.10 2021/04/01 04:35:47 simonb Exp $ */
+/* $NetBSD: types.h,v 1.11 2021/05/01 06:45:23 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -37,13 +37,15 @@
 #include <riscv/int_types.h>
 
 #if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE)
-typedef __UINTPTR_TYPE__       paddr_t;
-typedef __UINTPTR_TYPE__       psize_t;
+
+typedef __uint64_t     paddr_t;
+typedef __uint64_t     psize_t;
+#define        PRIxPADDR       PRIx64
+#define        PRIxPSIZE       PRIx64
+#define        PRIuPSIZE       PRIu64
+
 typedef __UINTPTR_TYPE__       vaddr_t;
 typedef __UINTPTR_TYPE__       vsize_t;
-#define        PRIxPADDR       PRIxPTR
-#define        PRIxPSIZE       PRIxPTR
-#define        PRIuPSIZE       PRIuPTR
 #define        PRIxVADDR       PRIxPTR
 #define        PRIxVSIZE       PRIxPTR
 #define        PRIuVSIZE       PRIuPTR



Home | Main Index | Thread Index | Old Index