From bda13d0b9fefaebbb7791a31360a9ca1f742f481 Mon Sep 17 00:00:00 2001 From: mickey Date: Sat, 15 Feb 1997 17:40:21 +0000 Subject: [PATCH] add kernel_text symbol (just like other archs) --- sys/arch/arc/arc/locore.S | 6 ++++-- sys/arch/arm32/arm32/locore.S | 2 ++ sys/arch/mvme88k/mvme88k/locore.S | 1 + sys/arch/pmax/pmax/locore.S | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/sys/arch/arc/arc/locore.S b/sys/arch/arc/arc/locore.S index 8b65b133982..7686aebc6a3 100644 --- a/sys/arch/arc/arc/locore.S +++ b/sys/arch/arc/arc/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.7 1996/11/23 23:19:29 kstailey Exp $ */ +/* $OpenBSD: locore.S,v 1.8 1997/02/15 17:40:21 mickey Exp $ */ /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -50,7 +50,7 @@ * v 1.1 89/07/10 14:27:41 nelson Exp SPRITE (DECWRL) * * from: @(#)locore.s 8.5 (Berkeley) 1/4/94 - * $Id: locore.S,v 1.7 1996/11/23 23:19:29 kstailey Exp $ + * $Id: locore.S,v 1.8 1997/02/15 17:40:21 mickey Exp $ */ /* @@ -78,6 +78,8 @@ #define START_FRAME ((4 * 4) + 4 + 4) .globl start + .globl _C_LABEL(kernel_start) + _C_LABEL(kernel_start) = start start: mtc0 zero, COP_0_STATUS_REG # Disable interrupts mtc0 zero, COP_0_CAUSE_REG # Clear soft interrupts diff --git a/sys/arch/arm32/arm32/locore.S b/sys/arch/arm32/arm32/locore.S index 57ea4805b11..ce231b4693e 100644 --- a/sys/arch/arm32/arm32/locore.S +++ b/sys/arch/arm32/arm32/locore.S @@ -68,6 +68,8 @@ pc .req r15 .text .align 0 .global start + .global _C_LABEL(kernel_text) + _C_LABEL(kernel_text) = start start: add r1, pc, #(Lstart - . - 8) ldmia r1, { r1, r2, r13 } /* Set initial stack and */ diff --git a/sys/arch/mvme88k/mvme88k/locore.S b/sys/arch/mvme88k/mvme88k/locore.S index e0c2ad9c862..055799a566f 100644 --- a/sys/arch/mvme88k/mvme88k/locore.S +++ b/sys/arch/mvme88k/mvme88k/locore.S @@ -70,6 +70,7 @@ def _INCLUDE_VERSION, INCLUDE_VERSION ***********************************************************************/ text +LABEL(_kernel_text) LABEL(_kernelstart) LABEL(_start) LABEL(start) diff --git a/sys/arch/pmax/pmax/locore.S b/sys/arch/pmax/pmax/locore.S index 92728850a43..ec2d9299926 100644 --- a/sys/arch/pmax/pmax/locore.S +++ b/sys/arch/pmax/pmax/locore.S @@ -168,6 +168,8 @@ #define START_FRAME ((4 * 4) + 4 + 4) .globl start + .globl _C_LABEL(kernel_text) + _C_LABEL(kernel_text) = start start: mtc0 zero, MACH_COP_0_STATUS_REG # Disable interrupts li t1, MACH_CACHED_MEMORY_ADDR # invalid address -- 2.20.1