Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/include Provide a LWP_PC for Taylor



details:   https://anonhg.NetBSD.org/src/rev/bcb822f727a6
branches:  trunk
changeset: 994872:bcb822f727a6
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 24 22:49:35 2018 +0000

description:
Provide a LWP_PC for Taylor

diffstat:

 sys/arch/aarch64/include/cpu.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 9bd510185a7e -r bcb822f727a6 sys/arch/aarch64/include/cpu.h
--- a/sys/arch/aarch64/include/cpu.h    Sat Nov 24 22:18:57 2018 +0000
+++ b/sys/arch/aarch64/include/cpu.h    Sat Nov 24 22:49:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.11 2018/11/20 01:59:51 mrg Exp $ */
+/* $NetBSD: cpu.h,v 1.12 2018/11/24 22:49:35 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -55,6 +55,11 @@
 #define CLKF_PC(cf)            ((cf)->cf_tf.tf_pc)
 #define CLKF_INTR(cf)          ((void)(cf), curcpu()->ci_intr_depth > 1)
 
+/*
+ * LWP_PC: Find out the program counter for the given lwp.
+ */
+#define LWP_PC(l)              ((l)->l_md.md_utf->tf_pc)
+
 #include <sys/cpu_data.h>
 #include <sys/device_if.h>
 #include <sys/intr.h>



Home | Main Index | Thread Index | Old Index