aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/include
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2015-10-04 09:39:40 +0000
committerRobert Watson <rwatson@FreeBSD.org>2015-10-04 09:39:40 +0000
commitba2f5f5ed3645cfe585d4a69cbc6a76d80901fee (patch)
tree1a704e1838e71fcbc915a67d8abe240a252f1f88 /sys/arm/include
parent9b420b3da4f2dc841c8431522bf4a299ae58d86c (diff)
downloadsrc-ba2f5f5ed3645cfe585d4a69cbc6a76d80901fee.tar.gz
src-ba2f5f5ed3645cfe585d4a69cbc6a76d80901fee.zip
Add missing stack unwind information to several assembly functions on
ARMv6/7: - Define _SAVE() macro to allow unwind data to be conditionally defined for ARM assembly code in the kernel. - Use _SAVE() to provide unwind information for bcopy_page(), and two (of many) instances of copyin() and copyout(). Reviewed by: andrew, imp MFC after: 3 days Sponsored by: University of Cambridge
Notes
Notes: svn path=/head/; revision=288662
Diffstat (limited to 'sys/arm/include')
-rw-r--r--sys/arm/include/asm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/include/asm.h b/sys/arm/include/asm.h
index 2f64c3758305..5958ea38f9a4 100644
--- a/sys/arm/include/asm.h
+++ b/sys/arm/include/asm.h
@@ -53,10 +53,12 @@
#define STOP_UNWINDING .cantunwind
#define _FNSTART .fnstart
#define _FNEND .fnend
+#define _SAVE(...) .save __VA_ARGS__
#else
#define STOP_UNWINDING
#define _FNSTART
#define _FNEND
+#define _SAVE(...)
#endif
/*