summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/include/asm.h14
-rw-r--r--sys/i386/include/asm.h14
2 files changed, 18 insertions, 10 deletions
diff --git a/sys/amd64/include/asm.h b/sys/amd64/include/asm.h
index 51ec27845b5a..340b1701f7c1 100644
--- a/sys/amd64/include/asm.h
+++ b/sys/amd64/include/asm.h
@@ -84,15 +84,19 @@
.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
#ifdef PROF
-#define ENTRY(x) _ENTRY(x); 9: \
+#define ALTENTRY(x) _ENTRY(x); \
pushl %ebp; movl %esp,%ebp; \
call PIC_PLT(HIDENAME(mcount)); \
- popl %ebp
-
-#define ALTENTRY(x) _ENTRY(x) ; call PIC_PLT(HIDENAME(mcount)) ; jmp 9f
+ popl %ebp; \
+ jmp 9f
+#define ENTRY(x) _ENTRY(x); \
+ pushl %ebp; movl %esp,%ebp; \
+ call PIC_PLT(HIDENAME(mcount)); \
+ popl %ebp; \
+ 9:
#else
+#define ALTENTRY(x) _ENTRY(x)
#define ENTRY(x) _ENTRY(x)
-#define ALTENTRY(x) _ENTRY(x)
#endif
#define RCSID(x) .text; .asciz x
diff --git a/sys/i386/include/asm.h b/sys/i386/include/asm.h
index 51ec27845b5a..340b1701f7c1 100644
--- a/sys/i386/include/asm.h
+++ b/sys/i386/include/asm.h
@@ -84,15 +84,19 @@
.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
#ifdef PROF
-#define ENTRY(x) _ENTRY(x); 9: \
+#define ALTENTRY(x) _ENTRY(x); \
pushl %ebp; movl %esp,%ebp; \
call PIC_PLT(HIDENAME(mcount)); \
- popl %ebp
-
-#define ALTENTRY(x) _ENTRY(x) ; call PIC_PLT(HIDENAME(mcount)) ; jmp 9f
+ popl %ebp; \
+ jmp 9f
+#define ENTRY(x) _ENTRY(x); \
+ pushl %ebp; movl %esp,%ebp; \
+ call PIC_PLT(HIDENAME(mcount)); \
+ popl %ebp; \
+ 9:
#else
+#define ALTENTRY(x) _ENTRY(x)
#define ENTRY(x) _ENTRY(x)
-#define ALTENTRY(x) _ENTRY(x)
#endif
#define RCSID(x) .text; .asciz x