Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpuser For MIPS N32, register_t needs to be uint64_...
details: https://anonhg.NetBSD.org/src/rev/3d468bb14098
branches: trunk
changeset: 982163:3d468bb14098
user: simonb <simonb%NetBSD.org@localhost>
date: Sat Apr 03 07:38:11 2021 +0000
description:
For MIPS N32, register_t needs to be uint64_t as "long" isn't
big enough.
diffstat:
lib/librumpuser/rumpuser_port.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 478d429847e7 -r 3d468bb14098 lib/librumpuser/rumpuser_port.h
--- a/lib/librumpuser/rumpuser_port.h Sat Apr 03 04:33:08 2021 +0000
+++ b/lib/librumpuser/rumpuser_port.h Sat Apr 03 07:38:11 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser_port.h,v 1.50 2017/05/11 10:21:55 martin Exp $ */
+/* $NetBSD: rumpuser_port.h,v 1.51 2021/04/03 07:38:11 simonb Exp $ */
#ifndef _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
#define _LIB_LIBRUMPUSER_RUMPUSER_PORT_H_
@@ -297,6 +297,13 @@
#define MSG_NOSIGNAL 0
#endif
+#if defined(__NetBSD__) && defined(__mips_n32) /* XXX */
+/* The MIPS N32 ABI has 4 byte longs but uses 8 byte registers */
+#define HAVE_REGISTER_T 1
+#define RUMP_REGISTER_T uint64_t
+typedef RUMP_REGISTER_T register_t;
+#define PRIxREGISTER PRIx64
+#endif /* __NetBSD__ && __mips_n32 */ /* XXX */
#if !defined(HAVE_REGISTER_T) && !defined(RUMP_REGISTER_T)
#define RUMP_REGISTER_T long
typedef RUMP_REGISTER_T register_t;
Home |
Main Index |
Thread Index |
Old Index