aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/alpha/memset.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/alpha/memset.S')
-rw-r--r--sysdeps/alpha/memset.S7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/alpha/memset.S b/sysdeps/alpha/memset.S
index 55271f0..2b29357 100644
--- a/sysdeps/alpha/memset.S
+++ b/sysdeps/alpha/memset.S
@@ -85,7 +85,14 @@ $tail: bne t4, 1f # is there a tail to do?
.end memset_loop
ENTRY(memset)
+#ifdef PROF
+ ldgp gp, 0(pv)
+ lda AT, _mcount
+ jsr AT, (AT), _mcount
+ .prologue 1
+#else
.prologue 0
+#endif
zapnot a1, 1, a1 # e0 : zero extend input character
mov a0, v0 # .. e1 : move return value in place