Subject: Re: CVS commit: syssrc/sys/arch/powerpc
To: None <matt@netbsd.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: source-changes
Date: 04/03/2002 19:55:57
In article <20020403001209.15309B004@cvs.netbsd.org>
matt@netbsd.org wrote:
> Modified Files:
> syssrc/sys/arch/powerpc/mpc6xx: pmap.c
> Log Message:
> Round
> memory regions in pmap_bootstrap.
In this commit,
> mp->start = round_page(mp->start);
> mp->size = trunc_page(mp->size);
> s = mp->start;
> e = mp->start + mp->size;
:
> if (e > kernelend) {
> avail[avail_cnt].start = kernelend;
> avail[avail_cnt].size = e - kernelend;
> avail_cnt++;
> }
if mp->start is not page-aligned and mp->size is aligned,
avail[].size would be updated incorrectly.
---
Izumi Tsutsui
tsutsui@ceres.dti.ne.jp