summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/asmacros.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-02-13 08:31:53 +0000
committerbde <bde@FreeBSD.org>1997-02-13 08:31:53 +0000
commit84f36445a57c37d5d161e24d294217142e8f205b (patch)
tree61fb2dcc857c0e8cf615eefaa2c8f7fbc3503e20 /sys/amd64/include/asmacros.h
parent67a1a81fad31018f4ba4dedfdd0bb710b81cd07d (diff)
downloadFreeBSD-src-84f36445a57c37d5d161e24d294217142e8f205b.zip
FreeBSD-src-84f36445a57c37d5d161e24d294217142e8f205b.tar.gz
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.
Diffstat (limited to 'sys/amd64/include/asmacros.h')
-rw-r--r--sys/amd64/include/asmacros.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/amd64/include/asmacros.h b/sys/amd64/include/asmacros.h
index 78c7642..d918853 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); \
OpenPOWER on IntegriCloud