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 EXPORT_OBJECT - export definition ...



details:   https://anonhg.NetBSD.org/src/rev/0bd04438f731
branches:  trunk
changeset: 944313:0bd04438f731
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Sep 26 08:19:11 2020 +0000

description:
Add EXPORT_OBJECT - export definition of symbol of symbol type Object,
visible to ksyms(4) address search.

diffstat:

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

diffs (24 lines):

diff -r b25c60b10758 -r 0bd04438f731 sys/arch/mips/include/asm.h
--- a/sys/arch/mips/include/asm.h       Sat Sep 26 08:02:35 2020 +0000
+++ b/sys/arch/mips/include/asm.h       Sat Sep 26 08:19:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asm.h,v 1.61 2020/08/12 08:56:37 skrll Exp $   */
+/*     $NetBSD: asm.h,v 1.62 2020/09/26 08:19:11 simonb Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -237,6 +237,14 @@
 _C_LABEL(x):
 
 /*
+ * EXPORT_OBJECT -- export definition of symbol of symbol
+ * type Object, visible to ksyms(4) address search.
+ */
+#define        EXPORT_OBJECT(x)                \
+       EXPORT(x);                      \
+       .type   _C_LABEL(x), @object;
+
+/*
  * VECTOR
  *     exception vector entrypoint
  *     XXX: regmask should be used to generate .mask



Home | Main Index | Thread Index | Old Index