diff options
author | markm <markm@FreeBSD.org> | 2002-04-21 10:49:00 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-04-21 10:49:00 +0000 |
commit | 8801cf491a4218c9059ba0fa73b53b7ecfbe4a79 (patch) | |
tree | 7bf1b9624a22d7150bcc6e4cf2b31b575390b6e9 /sys/i386 | |
parent | c723880f8ed747b89d70d162a017930da6326737 (diff) | |
download | FreeBSD-src-8801cf491a4218c9059ba0fa73b53b7ecfbe4a79.zip FreeBSD-src-8801cf491a4218c9059ba0fa73b53b7ecfbe4a79.tar.gz |
Stylify (mainly line up macro EOL-continuation \'s), and add a dummy
alternative for lint.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/include/profile.h | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/sys/i386/include/profile.h b/sys/i386/include/profile.h index a00f475..0c07444 100644 --- a/sys/i386/include/profile.h +++ b/sys/i386/include/profile.h @@ -82,28 +82,35 @@ extern int mcount_lock; #define _MCOUNT_DECL static __inline void _mcount -#define MCOUNT \ -void \ -mcount() \ -{ \ - uintfptr_t selfpc, frompc; \ - /* \ - * Find the return address for mcount, \ - * and the return address for mcount's caller. \ - * \ - * selfpc = pc pushed by call to mcount \ - */ \ - asm("movl 4(%%ebp),%0" : "=r" (selfpc)); \ - /* \ - * frompc = pc pushed by call to mcount's caller. \ - * The caller's stack frame has already been built, so %ebp is \ - * the caller's frame pointer. The caller's raddr is in the \ - * caller's frame following the caller's caller's frame pointer. \ - */ \ - asm("movl (%%ebp),%0" : "=r" (frompc)); \ - frompc = ((uintfptr_t *)frompc)[1]; \ - _mcount(frompc, selfpc); \ +#ifdef __GNUC__ +#define MCOUNT \ +void \ +mcount() \ +{ \ + uintfptr_t selfpc, frompc; \ + /* \ + * Find the return address for mcount, \ + * and the return address for mcount's caller. \ + * \ + * selfpc = pc pushed by call to mcount \ + */ \ + asm("movl 4(%%ebp),%0" : "=r" (selfpc)); \ + /* \ + * frompc = pc pushed by call to mcount's caller. \ + * The caller's stack frame has already been built, so %ebp is \ + * the caller's frame pointer. The caller's raddr is in the \ + * caller's frame following the caller's caller's frame pointer.\ + */ \ + asm("movl (%%ebp),%0" : "=r" (frompc)); \ + frompc = ((uintfptr_t *)frompc)[1]; \ + _mcount(frompc, selfpc); \ } +#else /* __GNUC__ */ +void \ +mcount() \ +{ \ +} +#endif /* __GNUC__ */ typedef unsigned int uintfptr_t; |