summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-02-12 14:37:01 +1100
committerDamien George <damien.p.george@gmail.com>2019-02-12 14:37:01 +1100
commitf608f54ab0443910931380a0f735c81e1a8a3ffa (patch)
tree9deeb7fe99d74675738ae3925be62cb1faa4ed3a
parent90e1303b2df1bc1967ae5403a0456512f10b3782 (diff)
lib/utils/gchelper_m3: Add gc_helper_get_sp() function.
-rw-r--r--lib/utils/gchelper_m3.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/utils/gchelper_m3.s b/lib/utils/gchelper_m3.s
index 5220fa088..3aac0dedf 100644
--- a/lib/utils/gchelper_m3.s
+++ b/lib/utils/gchelper_m3.s
@@ -31,6 +31,18 @@
.section .text
.align 2
+ .global gc_helper_get_sp
+ .type gc_helper_get_sp, %function
+
+@ uint gc_helper_get_sp(void)
+gc_helper_get_sp:
+ @ return the sp
+ mov r0, sp
+ bx lr
+
+ .size gc_helper_get_sp, .-gc_helper_get_sp
+
+
.global gc_helper_get_regs_and_sp
.type gc_helper_get_regs_and_sp, %function