Module Name: src
Committed By: christos
Date: Thu Feb 16 02:29:25 UTC 2012
Modified Files:
src/sys/arch/arm/include: cpufunc.h
Log Message:
expose functions needed to compute stack traces to kmemuser
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/arm/include/cpufunc.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/arm/include/cpufunc.h
diff -u src/sys/arch/arm/include/cpufunc.h:1.54 src/sys/arch/arm/include/cpufunc.h:1.55
--- src/sys/arch/arm/include/cpufunc.h:1.54 Sat Dec 10 22:30:23 2011
+++ src/sys/arch/arm/include/cpufunc.h Wed Feb 15 21:29:25 2012
@@ -689,19 +689,6 @@ u_int set_r15(u_int, u_int);
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;
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 */