Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/include Add _UC_SETSTACK, _UC_CLRSTACK flags. ...



details:   https://anonhg.NetBSD.org/src/rev/36a7616a8541
branches:  trunk
changeset: 555582:36a7616a8541
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sat Nov 22 17:05:53 2003 +0000

description:
Add _UC_SETSTACK, _UC_CLRSTACK flags.  Add __fpr_fpul to __fpregset_t
and redefine __fpr_regs as an array of 32 ints (SH3E has 16, SH4 has
32 32-bit FP registers) to reserve the space for FPU registers - we
will properly redefine this as a union when we do support FPU.

diffstat:

 sys/arch/sh3/include/mcontext.h |  17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diffs (38 lines):

diff -r 42421108da1f -r 36a7616a8541 sys/arch/sh3/include/mcontext.h
--- a/sys/arch/sh3/include/mcontext.h   Sat Nov 22 16:48:14 2003 +0000
+++ b/sys/arch/sh3/include/mcontext.h   Sat Nov 22 17:05:53 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcontext.h,v 1.3 2003/10/08 22:43:01 thorpej Exp $     */
+/*     $NetBSD: mcontext.h,v 1.4 2003/11/22 17:05:53 uwe Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -72,9 +72,15 @@
 /* Convenience synonym */
 #define        _REG_SP         _REG_R15
 
+/*
+ * FPU state description.
+ * XXX: kernel doesn't support FPU yet, so this is just a placeholder.
+ */
 typedef struct {
        int             __fpr_fpscr;
-       double          __fpr_regs[8];
+       int             __fpr_fpul;
+       /* XXX: redefine as a union when we do support FPU */
+       int             __fpr_regs[32]; /* SH3E has 16, SH4 has 32 */
 } __fpregset_t;
 
 typedef struct {
@@ -88,4 +94,11 @@
 
 #define        _UC_MACHINE_SET_PC(uc, pc)      _UC_MACHINE_PC(uc) = (pc)
 
+/*
+ * Machine dependent uc_flags
+ */
+#define        _UC_SETSTACK            0x10000
+#define        _UC_CLRSTACK            0x20000
+
+
 #endif /* !_SH3_MCONTEXT_H_ */



Home | Main Index | Thread Index | Old Index