Module Name: src Committed By: scole Date: Thu Apr 26 18:06:25 UTC 2018
Modified Files: src/sys/arch/ia64/include: mcontext.h Log Message: Update some of the _UC_MACHINE* macros even though gregs[] aren't tied to anything yet To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/ia64/include/mcontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/ia64/include/mcontext.h diff -u src/sys/arch/ia64/include/mcontext.h:1.7 src/sys/arch/ia64/include/mcontext.h:1.8 --- src/sys/arch/ia64/include/mcontext.h:1.7 Tue Feb 27 09:51:28 2018 +++ src/sys/arch/ia64/include/mcontext.h Thu Apr 26 18:06:25 2018 @@ -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 @@ typedef struct __mcontext { __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)