aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sh/sysdep.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-12-12 18:06:59 +0000
committerUlrich Drepper <drepper@redhat.com>2001-12-12 18:06:59 +0000
commit2bfe5fd1138ee5884605af7f346f74f0fb442211 (patch)
treea3338c711d0a40a0ee690b07397fc67f774adda3 /sysdeps/sh/sysdep.h
parent0a9b637e8ae475e1976ed3f94e40eb9626a5c58b (diff)
downloadglibc-2bfe5fd1138ee5884605af7f346f74f0fb442211.zip
glibc-2bfe5fd1138ee5884605af7f346f74f0fb442211.tar.gz
glibc-2bfe5fd1138ee5884605af7f346f74f0fb442211.tar.bz2
Update.
2001-12-12 NIIBE Yutaka <gniibe@m17n.org> * sysdeps/sh/Makefile: New file. * sysdeps/sh/_mcount.S: New file. * sysdeps/sh/sysdep.h (CALL_MCOUNT): Implemented. * sysdeps/sh/machine-gmon.h: Remove "NOTYET" comment, as we are ready.
Diffstat (limited to 'sysdeps/sh/sysdep.h')
-rw-r--r--sysdeps/sh/sysdep.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/sh/sysdep.h b/sysdeps/sh/sysdep.h
index 2e1e380..202c701 100644
--- a/sysdeps/sh/sysdep.h
+++ b/sysdeps/sh/sysdep.h
@@ -60,7 +60,15 @@
/* If compiled for profiling, call `mcount' at the start of each function. */
#ifdef PROF
-#define CALL_MCOUNT /* NOTYET */
+#define CALL_MCOUNT \
+ mov.l 1f,r1; \
+ sts.l pr,@-r15; \
+ mova 2f,r0; \
+ jmp @r1; \
+ lds r0,pr; \
+ .align 2; \
+1: .long mcount; \
+2: lds.l @r15+,pr
#else
#define CALL_MCOUNT /* Do nothing. */
#endif