diff options
author | Bruce Evans <bde@FreeBSD.org> | 1997-02-13 08:31:53 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1997-02-13 08:31:53 +0000 |
commit | 47cac30b9aaf3dfda4970bb7544886145abb9456 (patch) | |
tree | 61fb2dcc857c0e8cf615eefaa2c8f7fbc3503e20 /sys/i386/include/asmacros.h | |
parent | 043c578eb4513fafc54490adc75d0cf16722c5e7 (diff) | |
download | src-47cac30b9aaf3dfda4970bb7544886145abb9456.tar.gz src-47cac30b9aaf3dfda4970bb7544886145abb9456.zip |
Align text to 16-byte boundaries if profiling is enabled. This will
allow a fourfold reduction in the size of the profiling buffers. This
goes with rev.1.91 of Makefile.i386 which does the same thing for C
functions.
Notes
Notes:
svn path=/head/; revision=22636
Diffstat (limited to 'sys/i386/include/asmacros.h')
-rw-r--r-- | sys/i386/include/asmacros.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/i386/include/asmacros.h b/sys/i386/include/asmacros.h index 78c76425f1ea..d9188537fea2 100644 --- a/sys/i386/include/asmacros.h +++ b/sys/i386/include/asmacros.h @@ -42,7 +42,11 @@ /* XXX too much duplication in various asm*.h's. */ #define ALIGN_DATA .align 2 /* 4 byte alignment, zero filled */ +#ifdef GPROF +#define ALIGN_TEXT .align 4,0x90 /* 16-byte alignment, nop filled */ +#else #define ALIGN_TEXT .align 2,0x90 /* 4-byte alignment, nop filled */ +#endif #define SUPERALIGN_TEXT .align 4,0x90 /* 16-byte alignment, nop filled */ #define GEN_ENTRY(name) ALIGN_TEXT; .globl __CONCAT(_,name); \ |