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 | |
| parent | 043c578eb4513fafc54490adc75d0cf16722c5e7 (diff) | |
Notes
| -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); \ |
