summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-07-29 00:38:07 +0000
committerjake <jake@FreeBSD.org>2002-07-29 00:38:07 +0000
commit16fa260a5e58c3bb34fe0aa8d2b4cdfaaeb989ca (patch)
tree1efbdab52fe40196d7b51f36684976ca2b61421e
parentfea62cdb6b2594854bb90835787215cb384790b4 (diff)
downloadFreeBSD-src-16fa260a5e58c3bb34fe0aa8d2b4cdfaaeb989ca.zip
FreeBSD-src-16fa260a5e58c3bb34fe0aa8d2b4cdfaaeb989ca.tar.gz
Add _ALIGN_DATA and _ALIGN_TEXT macros.
-rw-r--r--sys/sparc64/include/asmacros.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/sparc64/include/asmacros.h b/sys/sparc64/include/asmacros.h
index 2c48c9b..a719efd 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 ## :
OpenPOWER on IntegriCloud