Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh5/include Double-precision FP regs use a single r...
details: https://anonhg.NetBSD.org/src/rev/4e24a6ffcbf9
branches: trunk
changeset: 536090:4e24a6ffcbf9
user: scw <scw%NetBSD.org@localhost>
date: Fri Sep 06 15:35:41 2002 +0000
description:
Double-precision FP regs use a single register_t, despite the FP number
being a multiple of two. Correct for this in the _JB_DR macro.
diffstat:
sys/arch/sh5/include/setjmp.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7131bed87977 -r 4e24a6ffcbf9 sys/arch/sh5/include/setjmp.h
--- a/sys/arch/sh5/include/setjmp.h Fri Sep 06 15:33:48 2002 +0000
+++ b/sys/arch/sh5/include/setjmp.h Fri Sep 06 15:35:41 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setjmp.h,v 1.4 2002/09/05 09:53:17 scw Exp $ */
+/* $NetBSD: setjmp.h,v 1.5 2002/09/06 15:35:41 scw Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -66,7 +66,7 @@
#define _JB_R(r) (_JB_REGS + (_JB_SZREGISTER_T * 2) + ((r) * 8))
#define _JB_TR(r) (_JB_REGS + (_JB_SZREGISTER_T * 65) + ((r) * 8))
#define _JB_FPSCR (_JB_REGS + (_JB_SZREGISTER_T * 73))
-#define _JB_DR(r) (_JB_REGS + (_JB_SZREGISTER_T * 74) + ((r) * 8))
+#define _JB_DR(r) (_JB_REGS + (_JB_SZREGISTER_T * 74) + (((r)/2) * 8))
#define _JB_R2 _JB_R(2)
#define _JB_R10 _JB_R(10)
Home |
Main Index |
Thread Index |
Old Index