From 16fa260a5e58c3bb34fe0aa8d2b4cdfaaeb989ca Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 29 Jul 2002 00:38:07 +0000 Subject: [PATCH] Add _ALIGN_DATA and _ALIGN_TEXT macros. --- sys/sparc64/include/asmacros.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys/sparc64/include/asmacros.h b/sys/sparc64/include/asmacros.h index 2c48c9bb5f2c..a719efd7b004 100644 --- a/sys/sparc64/include/asmacros.h +++ b/sys/sparc64/include/asmacros.h @@ -129,8 +129,16 @@ set sym, dst #endif +#define _ALIGN_DATA .align 8 +#ifdef GPROF +#define _ALIGN_TEXT .align 32 +#else +#define _ALIGN_TEXT .align 16 +#endif + #define DATA(name) \ .data ; \ + _ALIGN_DATA ; \ .globl name ; \ .type name, @object ; \ name ## : @@ -139,7 +147,7 @@ name ## : #define ENTRY(name) \ .text ; \ - .align 16 ; \ + _ALIGN_TEXT ; \ .globl name ; \ .type name, @function ; \ name ## :