Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/include Implement _UC_MACHINE_INTRV() for hppa



details:   https://anonhg.NetBSD.org/src/rev/e84ab32481c8
branches:  trunk
changeset: 359861:e84ab32481c8
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Feb 27 11:26:39 2018 +0000

description:
Implement _UC_MACHINE_INTRV() for hppa

INTRV = integer return value
For hppa this is R28 alias _REG_RET0.

diffstat:

 sys/arch/hppa/include/mcontext.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r ed832f3c9696 -r e84ab32481c8 sys/arch/hppa/include/mcontext.h
--- a/sys/arch/hppa/include/mcontext.h  Tue Feb 27 11:15:53 2018 +0000
+++ b/sys/arch/hppa/include/mcontext.h  Tue Feb 27 11:26:39 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mcontext.h,v 1.9 2018/02/15 15:53:56 kamil Exp $       */
+/*     $NetBSD: mcontext.h,v 1.10 2018/02/27 11:26:39 kamil Exp $      */
 
 #ifndef _HPPA_MCONTEXT_H_
 #define        _HPPA_MCONTEXT_H_
@@ -57,6 +57,7 @@
        (uc)->uc_mcontext.__gregs[_REG_PCOQH] = (pc);                   \
        (uc)->uc_mcontext.__gregs[_REG_PCOQT] = (pc) + 4;               \
 } while (/*CONSTCOND*/0)
+#define        _UC_MACHINE_INTRV(uc)   ((uc)->uc_mcontext.__gregs[_REG_RET0])
 
 static __inline void *
 __lwp_getprivate_fast(void)



Home | Main Index | Thread Index | Old Index