mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 13:44:55 +00:00
Move ENTRY and ALTENTRY definitions to asm.h where they belong.
Unbreak profiling. Again. Submitted by: bde
This commit is contained in:
parent
c95a5e9ebd
commit
ed25321907
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56309
|
@ -39,26 +39,3 @@
|
|||
*/
|
||||
|
||||
#include <machine/asm.h>
|
||||
|
||||
/* Already defined in machine/asm.h. */
|
||||
#undef ENTRY
|
||||
|
||||
#define MCOUNT call PIC_PLT(HIDENAME(mcount))
|
||||
#define MEXITCOUNT call PIC_PLT(HIDENAME(mexitcount))
|
||||
|
||||
#ifdef PROF
|
||||
/*
|
||||
* XXX Looks good to me, but it sure looks different than the original...
|
||||
* (jasone)
|
||||
*/
|
||||
#define ENTRY(name) _ENTRY(name) ; 9: ; MCOUNT
|
||||
/* #define ENTRY(name) _ENTRY(name) ; 9: \ */
|
||||
/* pushl %ebp; movl %esp,%ebp; \ */
|
||||
/* call PIC_PLT(HIDENAME(mcount)); \ */
|
||||
/* popl %ebp */
|
||||
|
||||
#define ALTENTRY(name) _ENTRY(name) ; MCOUNT ; MEXITCOUNT ; jmp 9f
|
||||
#else
|
||||
#define ENTRY(name) _ENTRY(name)
|
||||
#define ALTENTRY(name) _ENTRY(name)
|
||||
#endif
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue