Module Name: src Committed By: skrll Date: Sat Nov 24 22:49:35 UTC 2018
Modified Files: src/sys/arch/aarch64/include: cpu.h Log Message: Provide a LWP_PC for Taylor To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/aarch64/include/cpu.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/aarch64/include/cpu.h diff -u src/sys/arch/aarch64/include/cpu.h:1.11 src/sys/arch/aarch64/include/cpu.h:1.12 --- src/sys/arch/aarch64/include/cpu.h:1.11 Tue Nov 20 01:59:51 2018 +++ src/sys/arch/aarch64/include/cpu.h Sat Nov 24 22:49:35 2018 @@ -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 @@ struct clockframe { #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>