Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include expose functions needed to compute stac...
details: https://anonhg.NetBSD.org/src/rev/86fd0353662c
branches: trunk
changeset: 777349:86fd0353662c
user: christos <christos%NetBSD.org@localhost>
date: Thu Feb 16 02:29:25 2012 +0000
description:
expose functions needed to compute stack traces to kmemuser
diffstat:
sys/arch/arm/include/cpufunc.h | 31 ++++++++++++++++++-------------
1 files changed, 18 insertions(+), 13 deletions(-)
diffs (48 lines):
diff -r 10bc13cd44bf -r 86fd0353662c sys/arch/arm/include/cpufunc.h
--- a/sys/arch/arm/include/cpufunc.h Thu Feb 16 02:27:11 2012 +0000
+++ b/sys/arch/arm/include/cpufunc.h Thu Feb 16 02:29:25 2012 +0000
@@ -689,19 +689,6 @@
u_int get_r15(void);
#endif /* __PROG32 */
-/*
- * Functions to manipulate cpu r13
- * (in arm/arm32/setstack.S)
- */
-
-void set_stackptr (u_int, u_int);
-u_int get_stackptr (u_int);
-
-/*
- * Miscellany
- */
-
-int get_pc_str_offset (void);
/*
* CPU functions from locore.S
@@ -730,6 +717,24 @@
extern int arm_dcache_align_mask;
#endif /* _KERNEL */
+
+#if defined(_KERNEL) || defined(_KMEMUSER)
+/*
+ * Miscellany
+ */
+
+int get_pc_str_offset (void);
+
+/*
+ * Functions to manipulate cpu r13
+ * (in arm/arm32/setstack.S)
+ */
+
+void set_stackptr (u_int, u_int);
+u_int get_stackptr (u_int);
+
+#endif /* _KERNEL || _KMEMUSER */
+
#endif /* _ARM32_CPUFUNC_H_ */
/* End of cpufunc.h */
Home |
Main Index |
Thread Index |
Old Index