Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/riscv/include Fix a typo: the PC is likely in _REG_PC



details:   https://anonhg.NetBSD.org/src/rev/924dfd44a42e
branches:  trunk
changeset: 333223:924dfd44a42e
user:      dennis <dennis%NetBSD.org@localhost>
date:      Fri Oct 24 01:08:07 2014 +0000

description:
Fix a typo: the PC is likely in _REG_PC

diffstat:

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

diffs (18 lines):

diff -r 9d129a647a6e -r 924dfd44a42e sys/arch/riscv/include/mcontext.h
--- a/sys/arch/riscv/include/mcontext.h Thu Oct 23 23:31:26 2014 +0000
+++ b/sys/arch/riscv/include/mcontext.h Fri Oct 24 01:08:07 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcontext.h,v 1.1 2014/09/19 17:36:26 matt Exp $ */
+/* $NetBSD: mcontext.h,v 1.2 2014/10/24 01:08:07 dennis Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -117,7 +117,7 @@
 #define        _UC_TLSBASE     0x00080000      /* see <sys/ucontext.h> */
 
 #define _UC_MACHINE_SP(uc)     ((uc)->uc_mcontext.__gregs[_REG_SP])
-#define _UC_MACHINE_PC(uc)     ((uc)->uc_mcontext.__gregs[_REG_LR])
+#define _UC_MACHINE_PC(uc)     ((uc)->uc_mcontext.__gregs[_REG_PC])
 #define _UC_MACHINE_INTRV(uc)  ((uc)->uc_mcontext.__gregs[_REG_RV])
 
 #define        _UC_MACHINE_SET_PC(uc, pc)      _UC_MACHINE_PC(uc) = (pc)



Home | Main Index | Thread Index | Old Index