Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/vax/include Align functions on 4 byte boundaries, n...
details: https://anonhg.NetBSD.org/src/rev/57de8fef72b2
branches: trunk
changeset: 761346:57de8fef72b2
user: matt <matt%NetBSD.org@localhost>
date: Tue Jan 25 02:37:35 2011 +0000
description:
Align functions on 4 byte boundaries, not 16.
Add END(x) for function sizing.
diffstat:
sys/arch/vax/include/asm.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 97411d20fd89 -r 57de8fef72b2 sys/arch/vax/include/asm.h
--- a/sys/arch/vax/include/asm.h Mon Jan 24 22:54:01 2011 +0000
+++ b/sys/arch/vax/include/asm.h Tue Jan 25 02:37:35 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.22 2010/12/20 21:11:26 joerg Exp $ */
+/* $NetBSD: asm.h,v 1.23 2011/01/25 02:37:35 matt Exp $ */
/*
* Copyright (c) 1982, 1993
* The Regents of the University of California. All rights reserved.
@@ -60,7 +60,7 @@
/* let kernels and others override entrypoint alignment */
#ifndef _ALIGN_TEXT
-# define _ALIGN_TEXT .align 4
+# define _ALIGN_TEXT .p2align 2
#endif
#define _ENTRY(x, regs) \
@@ -76,6 +76,7 @@
#define ENTRY(x, regs) _ENTRY(_C_LABEL(x), regs); _PROF_PROLOGUE
#define NENTRY(x, regs) _ENTRY(_C_LABEL(x), regs)
#define ASENTRY(x, regs) _ENTRY(_ASM_LABEL(x), regs); _PROF_PROLOGUE
+#define END(x) .size _C_LABEL(x),.-_C_LABEL(x)
#define ALTENTRY(x) .globl _C_LABEL(x); _C_LABEL(x):
#define RCSID(name) .pushsection ".ident"; .asciz name; .popsection
Home |
Main Index |
Thread Index |
Old Index