summaryrefslogtreecommitdiffstats
path: root/sys/lib/libkern/arch/arm32/_mcount.S
diff options
context:
space:
mode:
Diffstat (limited to 'sys/lib/libkern/arch/arm32/_mcount.S')
-rw-r--r--sys/lib/libkern/arch/arm32/_mcount.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/sys/lib/libkern/arch/arm32/_mcount.S b/sys/lib/libkern/arch/arm32/_mcount.S
new file mode 100644
index 00000000000..63cf52e3d62
--- /dev/null
+++ b/sys/lib/libkern/arch/arm32/_mcount.S
@@ -0,0 +1,17 @@
+fp .req r11
+ip .req r12
+sp .req r13
+lr .req r14
+pc .req r15
+
+.text
+ .align 0
+
+ .global mcount
+mcount:
+ stmfd sp!, {lr}
+ mov r1, lr
+ mov r0, ip
+ bl __mcount
+ ldmfd sp!, {lr}
+ add pc, lr, #0x00000004