Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/include match declaration types for registe...



details:   https://anonhg.NetBSD.org/src/rev/42aaf88bc5fc
branches:  trunk
changeset: 320720:42aaf88bc5fc
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jul 17 00:34:11 2018 +0000

description:
match declaration types for registers from reg.h

diffstat:

 sys/arch/aarch64/include/types.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r f987df767ba8 -r 42aaf88bc5fc sys/arch/aarch64/include/types.h
--- a/sys/arch/aarch64/include/types.h  Tue Jul 17 00:33:32 2018 +0000
+++ b/sys/arch/aarch64/include/types.h  Tue Jul 17 00:34:11 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.9 2018/07/12 10:46:41 maxv Exp $ */
+/* $NetBSD: types.h,v 1.10 2018/07/17 00:34:11 christos Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -54,10 +54,10 @@
 #define PRIxVSIZE      "lx"
 #define PRIuVSIZE      "lu"
 
-typedef unsigned long long int register_t;
+typedef __uint64_t register_t;
 typedef unsigned int register32_t;
-#define PRIxREGISTER   "llx"
-#define PRIxREGISTER32 "lx"
+#define PRIxREGISTER   PRIx64
+#define PRIxREGISTER32 "x"
 
 typedef unsigned short tlb_asid_t;
 
@@ -87,7 +87,7 @@
  * This should have always been an 8-bit type.
  */
 typedef        unsigned char   __cpu_simple_lock_nv_t;
-typedef unsigned long long int __register_t;
+typedef __uint64_t __register_t;
 
 #define __SIMPLELOCK_LOCKED    1
 #define __SIMPLELOCK_UNLOCKED  0



Home | Main Index | Thread Index | Old Index