Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Use EXPORT for start and EXPORT_OBJECT fo...



details:   https://anonhg.NetBSD.org/src/rev/a432d8391ba9
branches:  trunk
changeset: 939369:a432d8391ba9
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Sep 26 08:21:10 2020 +0000

description:
Use EXPORT for start and EXPORT_OBJECT for kernel_text instead of
by-hand exporting.  Using EXPORT_OBJECT for kernel_text also fixes
"bt/a" from DDB.

diffstat:

 sys/arch/mips/mips/locore.S |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (29 lines):

diff -r 7109d2276d41 -r a432d8391ba9 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S       Sat Sep 26 08:19:11 2020 +0000
+++ b/sys/arch/mips/mips/locore.S       Sat Sep 26 08:21:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.225 2020/07/31 20:04:18 skrll Exp $       */
+/*     $NetBSD: locore.S,v 1.226 2020/09/26 08:21:10 simonb Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -63,16 +63,14 @@
 #include <mips/trap.h>
 #include <mips/locore.h>
 
-RCSID("$NetBSD: locore.S,v 1.225 2020/07/31 20:04:18 skrll Exp $")
+RCSID("$NetBSD: locore.S,v 1.226 2020/09/26 08:21:10 simonb Exp $")
 
 #include "assym.h"
 
        .set    noreorder
 
-       .globl  start
-       .globl  _C_LABEL(kernel_text)           # libkvm refers this
-start:
-_C_LABEL(kernel_text):
+EXPORT(start)
+EXPORT_OBJECT(kernel_text)                     # libkvm refers this
        /* First disable the interrupts only, for safety */
        mfc0    k0, MIPS_COP_0_STATUS
        MFC0_HAZARD



Home | Main Index | Thread Index | Old Index