Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/mpc6xx Properly compensate for rounding the...



details:   https://anonhg.NetBSD.org/src/rev/f4616285ffbd
branches:  trunk
changeset: 533542:f4616285ffbd
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jul 03 20:41:20 2002 +0000

description:
Properly compensate for rounding the start of a mem_region up.

diffstat:

 sys/arch/powerpc/mpc6xx/pmap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r b7e772a3c65f -r f4616285ffbd sys/arch/powerpc/mpc6xx/pmap.c
--- a/sys/arch/powerpc/mpc6xx/pmap.c    Wed Jul 03 19:36:52 2002 +0000
+++ b/sys/arch/powerpc/mpc6xx/pmap.c    Wed Jul 03 20:41:20 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.46 2002/06/26 01:10:20 matt Exp $   */
+/*     $NetBSD: pmap.c,v 1.47 2002/07/03 20:41:20 matt Exp $   */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -2688,9 +2688,10 @@
        kernelstart = trunc_page(kernelstart);
        kernelend = round_page(kernelend);
        for (mp = avail, i = 0; i < avail_cnt; i++, mp++) {
-               mp->start = round_page(mp->start);
+               s = round_page(mp->start);
+               mp->size -= (s - mp->start);
                mp->size = trunc_page(mp->size);
-               s = mp->start;
+               mp->start = s;
                e = mp->start + mp->size;
 
                DPRINTFN(BOOT,



Home | Main Index | Thread Index | Old Index