Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/include Macros for .size directive.



details:   https://anonhg.NetBSD.org/src/rev/60152300285f
branches:  trunk
changeset: 586908:60152300285f
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Jan 05 02:02:56 2006 +0000

description:
Macros for .size directive.

diffstat:

 sys/arch/sh3/include/asm.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 7550ef4cee39 -r 60152300285f sys/arch/sh3/include/asm.h
--- a/sys/arch/sh3/include/asm.h        Thu Jan 05 02:01:51 2006 +0000
+++ b/sys/arch/sh3/include/asm.h        Thu Jan 05 02:02:56 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.20 2005/12/31 05:06:33 uwe Exp $     */
+/*     $NetBSD: asm.h,v 1.21 2006/01/05 02:02:56 uwe Exp $     */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -91,6 +91,12 @@
 #define        NENTRY(y)       _ENTRY(_C_LABEL(y))
 #define        ASENTRY(y)      _ENTRY(_ASM_LABEL(y)) _PROF_PROLOGUE
 
+#define SET_ENTRY_SIZE(y) \
+       .size   _C_LABEL(y), . - _C_LABEL(y)
+
+#define SET_ASENTRY_SIZE(y) \
+       .size   _ASM_LABEL(y), . - _ASM_LABEL(y)
+
 #ifdef __ELF__
 #define        ALTENTRY(name)                           \
        .globl _C_LABEL(name)                   ;\



Home | Main Index | Thread Index | Old Index