Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/ia64/include Update some of the _UC_MACHINE* macros...



details:   https://anonhg.NetBSD.org/src/rev/9151ae22cab4
branches:  trunk
changeset: 322244:9151ae22cab4
user:      scole <scole%NetBSD.org@localhost>
date:      Thu Apr 26 18:06:25 2018 +0000

description:
Update some of the _UC_MACHINE* macros even though gregs[] aren't tied to anything yet

diffstat:

 sys/arch/ia64/include/mcontext.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (24 lines):

diff -r 9692eccc59af -r 9151ae22cab4 sys/arch/ia64/include/mcontext.h
--- a/sys/arch/ia64/include/mcontext.h  Thu Apr 26 14:59:11 2018 +0000
+++ b/sys/arch/ia64/include/mcontext.h  Thu Apr 26 18:06:25 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcontext.h,v 1.7 2018/02/27 09:51:28 kamil Exp $       */
+/*     $NetBSD: mcontext.h,v 1.8 2018/04/26 18:06:25 scole Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -111,11 +111,11 @@
        __fpregset_t            __fpregs;
 } mcontext_t;
 
-#define _UC_MACHINE_SP(uc)     ((uc)->uc_mcontext.mc_special.sp)
+#define _UC_MACHINE_SP(uc)     ((uc)->uc_mcontext.mc_special.sp)  /* gregs[12] */
 #define _UC_MACHINE_FP(uc)     ((uc)->uc_mcontext.__gregs[79])
-/* XXX or assembly "mov Rn = ip" or ...? */
 #define        _UC_MACHINE_PC(uc)      ((uc)->uc_mcontext.mc_special.iip)
-#define        _UC_MACHINE_INTRV(uc)   0 /* XXX */
+#define        _UC_MACHINE_INTRV(uc)   ((uc)->uc_mcontext.__gregs[8])
+#define _UC_MACHINE_SET_PC(uc)  _UC_MACHINE_PC(uc) = (pc)  /* XXX */
 
 static __inline void *
 __lwp_getprivate_fast(void)



Home | Main Index | Thread Index | Old Index