diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/include/asmacros.h | 4 | ||||
-rw-r--r-- | sys/i386/include/asmacros.h | 4 |
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); \ |