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 provide 32 and 64 bit register struct ...
details: https://anonhg.NetBSD.org/src/rev/247d62ca8d8e
branches: trunk
changeset: 828344:247d62ca8d8e
user: christos <christos%NetBSD.org@localhost>
date: Sat Dec 09 03:22:33 2017 +0000
description:
provide 32 and 64 bit register struct definitions.
diffstat:
sys/arch/mips/include/reg.h | 26 +++++++++++++++++++++++++-
sys/arch/mips/include/types.h | 17 +++++++++++------
2 files changed, 36 insertions(+), 7 deletions(-)
diffs (84 lines):
diff -r 16401c781d34 -r 247d62ca8d8e sys/arch/mips/include/reg.h
--- a/sys/arch/mips/include/reg.h Sat Dec 09 00:54:31 2017 +0000
+++ b/sys/arch/mips/include/reg.h Sat Dec 09 03:22:33 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: reg.h,v 1.16 2016/01/24 16:13:19 christos Exp $ */
+/* $NetBSD: reg.h,v 1.17 2017/12/09 03:22:33 christos Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -46,14 +46,38 @@
__register_t r_regs[38];
};
+struct reg32 {
+ __register32_t r_regs[38];
+};
+
+struct reg64 {
+ __register64_t r_regs[38];
+};
+
struct fpreg {
__fpregister_t r_regs[33];
};
+struct fpreg32 {
+ __fpregister32_t r_regs[33];
+};
+
+struct fpreg64 {
+ __fpregister64_t r_regs[33];
+};
+
struct dspreg {
__register_t r_regs[8];
};
+struct dspreg32 {
+ __register32_t r_regs[8];
+};
+
+struct dspreg64 {
+ __register64_t r_regs[8];
+};
+
#if defined(__mips_n32) || defined(__mips_n64)
struct fpreg_oabi {
int32_t r_regs[33];
diff -r 16401c781d34 -r 247d62ca8d8e sys/arch/mips/include/types.h
--- a/sys/arch/mips/include/types.h Sat Dec 09 00:54:31 2017 +0000
+++ b/sys/arch/mips/include/types.h Sat Dec 09 03:22:33 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.66 2017/01/27 17:22:16 christos Exp $ */
+/* $NetBSD: types.h,v 1.67 2017/12/09 03:22:33 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -41,16 +41,21 @@
#include <sys/featuretest.h>
#include <mips/int_types.h>
-typedef unsigned int __cpu_simple_lock_nv_t;
+typedef __int32_t __register32_t;
+typedef __int64_t __register64_t;
+typedef __uint32_t __fpregister32_t;
+typedef __uint64_t __fpregister64_t;
+
+typedef unsigned int __cpu_simple_lock_nv_t;
#if defined(__mips_o32)
-typedef __int32_t __register_t;
+typedef __register32_t __register_t;
#else
-typedef __int64_t __register_t;
+typedef __register64_t __register_t;
#endif
#if defined(__mips_o64) || defined(__mips_o32)
-typedef __uint32_t __fpregister_t;
+typedef __fpregister32_t __fpregister_t;
#else
-typedef __uint64_t __fpregister_t;
+typedef __fpregister64_t __fpregister_t;
#endif
/*
Home |
Main Index |
Thread Index |
Old Index