From e9d5ab8b3a79d4f548b936bb06a599e3b99addfd Mon Sep 17 00:00:00 2001 From: briggs Date: Fri, 17 May 1996 02:11:47 +0000 Subject: [PATCH] Set _kernel_text as recommended by Gordon--set before vector table. --- sys/arch/mac68k/mac68k/locore.s | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/sys/arch/mac68k/mac68k/locore.s b/sys/arch/mac68k/mac68k/locore.s index 8967f43da543..64aeb002f4e3 100644 --- a/sys/arch/mac68k/mac68k/locore.s +++ b/sys/arch/mac68k/mac68k/locore.s @@ -1,4 +1,4 @@ -/* $NetBSD: locore.s,v 1.62 1996/05/08 15:13:22 scottr Exp $ */ +/* $NetBSD: locore.s,v 1.63 1996/05/17 02:11:47 briggs Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -77,6 +77,14 @@ * @(#)locore.s 7.11 (Berkeley) 5/9/91 */ +/* + * This is for kvm_mkdb, and should be the address of the beginning + * of the kernel text segment (not necessarily the same as kernbase). + */ + .text + .globl _kernel_text +_kernel_text: + #include "assym.h" #include "vectors.s" #include "macglobals.s" @@ -1793,11 +1801,8 @@ Lm68881rdone: /* * Handle the nitty-gritty of rebooting the machine. - * Basically we just turn off the MMU and jump to the appropriate ROM routine. - * Note that we must be running in an address range that is mapped one-to-one - * logical to physical so that the PC is still valid immediately after the MMU - * is turned off. We have conveniently mapped the last page of physical - * memory this way. + * Basically we just jump to the appropriate ROM routine after mapping + * the ROM into its proper home (back in machdep). */ .globl _doboot, _ROMBase _doboot: