Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include - add _C_LABEL() to IMPORT(), to make ...



details:   https://anonhg.NetBSD.org/src/rev/c618938e2f5c
branches:  trunk
changeset: 467883:c618938e2f5c
user:      soda <soda%NetBSD.org@localhost>
date:      Tue Mar 30 16:50:04 1999 +0000

description:
- add _C_LABEL() to IMPORT(), to make this consistent with EXPORT().
- fix some oversight of previous my changes on defined(USE_AENT) or
  !defined(__NO_LEADING_UNDERSCORES__) case.

diffstat:

 sys/arch/mips/include/asm.h |  17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diffs (61 lines):

diff -r c835aa9e35b0 -r c618938e2f5c sys/arch/mips/include/asm.h
--- a/sys/arch/mips/include/asm.h       Tue Mar 30 16:40:47 1999 +0000
+++ b/sys/arch/mips/include/asm.h       Tue Mar 30 16:50:04 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.19 1999/03/30 14:26:42 soda Exp $    */
+/*     $NetBSD: asm.h,v 1.20 1999/03/30 16:50:04 soda Exp $    */
 
 /*
  * Copyright (c) 1992, 1993
@@ -142,7 +142,7 @@
  */
 #define XLEAF(x)                       \
        .globl  _C_LABEL(x);            \
-       AENT (_C_LABEL(x))              \
+       AENT (_C_LABEL(x));             \
 _C_LABEL(x):
 
 /*
@@ -173,7 +173,7 @@
  */
 #define XNESTED(x)                     \
        .globl  _C_LABEL(x);            \
-       AENT (_C_LABEL(x))              \
+       AENT (_C_LABEL(x));             \
 _C_LABEL(x):
 
 /*
@@ -187,7 +187,7 @@
  * IMPORT -- import external symbol
  */
 #define IMPORT(sym, size)              \
-       .extern sym,size
+       .extern _C_LABEL(sym),size
 
 /*
  * EXPORT -- export definition of symbol
@@ -199,6 +199,7 @@
 /*
  * VECTOR
  *     exception vector entrypoint
+ *     XXX: regmask should be used to generate .mask
  */
 #define VECTOR(x, regmask)             \
        .ent    _C_LABEL(x),0;          \
@@ -206,12 +207,12 @@
 
 #ifdef __STDC__
 #define VECTOR_END(x)                  \
-       .end    _C_LABEL(x);            \
-       EXPORT(_C_LABEL(x) ## End)
+       EXPORT(x ## End);               \
+       END(x)
 #else
 #define VECTOR_END(x)                  \
-       .end    _C_LABEL(x);            \
-       EXPORT(_C_LABEL(x)/**/End)
+       EXPORT(x/**/End);               \
+       END(x)
 #endif
 
 /*



Home | Main Index | Thread Index | Old Index