Module Name:    src
Committed By:   matt
Date:           Tue Jan 25 02:37:35 UTC 2011

Modified Files:
        src/sys/arch/vax/include: asm.h

Log Message:
Align functions on 4 byte boundaries, not 16.
Add END(x) for function sizing.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/vax/include/asm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/vax/include/asm.h
diff -u src/sys/arch/vax/include/asm.h:1.22 src/sys/arch/vax/include/asm.h:1.23
--- src/sys/arch/vax/include/asm.h:1.22	Mon Dec 20 21:11:26 2010
+++ src/sys/arch/vax/include/asm.h	Tue Jan 25 02:37:35 2011
@@ -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

Reply via email to