Need to use atop() when adjusting kernend for ksyms.

XXX: This code has obviously bit-rotted.

Pointed out by Anders Gavare on port-sh3.
This commit is contained in:
uwe 2007-05-27 18:30:01 +00:00
parent e87faddb31
commit 19eb8fc1bc
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.38 2005/12/24 20:07:19 perry Exp $ */ /* $NetBSD: machdep.c,v 1.39 2007/05/27 18:30:01 uwe Exp $ */
/*- /*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.38 2005/12/24 20:07:19 perry Exp $"); __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.39 2007/05/27 18:30:01 uwe Exp $");
#include "opt_ddb.h" #include "opt_ddb.h"
#include "opt_memsize.h" #include "opt_memsize.h"
@ -246,7 +246,7 @@ initSH3(void *pc) /* XXX return address */
kernend = atop(round_page(SH3_P1SEG_TO_PHYS(end))); kernend = atop(round_page(SH3_P1SEG_TO_PHYS(end)));
#if NKSYMS || defined(DDB) || defined(LKM) #if NKSYMS || defined(DDB) || defined(LKM)
/* XXX Currently symbol table size is not passed to the kernel. */ /* XXX Currently symbol table size is not passed to the kernel. */
kernend += 0x40000; /* XXX */ kernend += atop(0x40000); /* XXX */
#endif #endif
/* Load memory to UVM */ /* Load memory to UVM */