Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Correct one of the kernel_size calculations.



details:   https://anonhg.NetBSD.org/src/rev/340822ea5fce
branches:  trunk
changeset: 783594:340822ea5fce
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Dec 31 01:23:31 2012 +0000

description:
Correct one of the kernel_size calculations.

diffstat:

 sys/arch/arm/arm32/arm32_kvminit.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5f8b1c885c18 -r 340822ea5fce sys/arch/arm/arm32/arm32_kvminit.c
--- a/sys/arch/arm/arm32/arm32_kvminit.c        Mon Dec 31 01:20:05 2012 +0000
+++ b/sys/arch/arm/arm32/arm32_kvminit.c        Mon Dec 31 01:23:31 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm32_kvminit.c,v 1.15 2012/12/10 06:51:49 matt Exp $  */
+/*     $NetBSD: arm32_kvminit.c,v 1.16 2012/12/31 01:23:31 matt Exp $  */
 
 /*
  * Copyright (c) 2002, 2003, 2005  Genetec Corporation.  All rights reserved.
@@ -122,7 +122,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.15 2012/12/10 06:51:49 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.16 2012/12/31 01:23:31 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -390,7 +390,7 @@
            + UND_STACK_SIZE + UPAGES) * PAGE_SIZE;
        kernel_size += round_page(MSGBUFSIZE);
        kernel_size += 0x10000; /* slop */
-       kernel_size += (kernel_size + L2_S_SEGSIZE - 1) / L2_S_SEGSIZE;
+       kernel_size += PAGE_SIZE * (kernel_size + L2_S_SEGSIZE - 1) / L2_S_SEGSIZE;
        kernel_size = round_page(kernel_size);
 
        /*



Home | Main Index | Thread Index | Old Index