summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/include/asm.h')
-rw-r--r--sys/amd64/include/asm.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/include/asm.h b/sys/amd64/include/asm.h
index 7ac1243..51ec278 100644
--- a/sys/amd64/include/asm.h
+++ b/sys/amd64/include/asm.h
@@ -84,12 +84,15 @@
.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
#ifdef PROF
-#define ENTRY(x) _ENTRY(x); \
+#define ENTRY(x) _ENTRY(x); 9: \
pushl %ebp; movl %esp,%ebp; \
call PIC_PLT(HIDENAME(mcount)); \
popl %ebp
+
+#define ALTENTRY(x) _ENTRY(x) ; call PIC_PLT(HIDENAME(mcount)) ; jmp 9f
#else
#define ENTRY(x) _ENTRY(x)
+#define ALTENTRY(x) _ENTRY(x)
#endif
#define RCSID(x) .text; .asciz x
OpenPOWER on IntegriCloud