initSH3(): prefix the extern edata[], end[] with '_', so that the kernel links

XXX this is probably wrong, other sh3 platforms don't need/have this
This commit is contained in:
jdolecek 2002-10-16 21:26:32 +00:00
parent da89748df7
commit 3a80cf174b
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.42 2002/05/10 20:14:40 uch Exp $ */
/* $NetBSD: machdep.c,v 1.43 2002/10/16 21:26:32 jdolecek Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -220,11 +220,11 @@ haltsys:
void
initSH3(void *pc) /* XXX return address */
{
extern char edata[], end[];
extern char _edata[], _end[];
vaddr_t kernend;
/* Clear bss */
memset(edata, 0, end - edata);
memset(_edata, 0, _end - _edata);
/* Initilize CPU ops. */
#if defined(SH3) && defined(SH4)
@ -258,7 +258,7 @@ initSH3(void *pc) /* XXX return address */
consinit();
/* Load memory to UVM */
kernend = atop(round_page(SH3_P1SEG_TO_PHYS(end)));
kernend = atop(round_page(SH3_P1SEG_TO_PHYS(_end)));
physmem = atop(IOM_RAM_SIZE);
uvm_page_physload(
kernend, atop(IOM_RAM_BEGIN + IOM_RAM_SIZE),