aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1997-02-13 08:31:53 +0000
committerBruce Evans <bde@FreeBSD.org>1997-02-13 08:31:53 +0000
commit47cac30b9aaf3dfda4970bb7544886145abb9456 (patch)
tree61fb2dcc857c0e8cf615eefaa2c8f7fbc3503e20 /sys
parent043c578eb4513fafc54490adc75d0cf16722c5e7 (diff)
downloadsrc-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')
-rw-r--r--sys/amd64/include/asmacros.h4
-rw-r--r--sys/i386/include/asmacros.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/sys/amd64/include/asmacros.h b/sys/amd64/include/asmacros.h
index 78c76425f1ea..d9188537fea2 100644
--- a/sys/amd64/include/asmacros.h
+++ b/sys/amd64/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); \
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); \