[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [MINI-OS] Fix a bug which prevented map_frames being used more than once.
# HG changeset patch # User sos22@xxxxxxxxxxxxxxxxxxxx # Node ID cc991d9953d217366c16c979746445cfc59351d1 # Parent bbabdebc54ada9b72889eb6a66dfed1d73801825 [MINI-OS] Fix a bug which prevented map_frames being used more than once. Found by John D. Ramsdell <ramsdell@xxxxxxxxx> Signed-off-by: Steven Smith <sos22@xxxxxxxxx> --- extras/mini-os/mm.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r bbabdebc54ad -r cc991d9953d2 extras/mini-os/mm.c --- a/extras/mini-os/mm.c Wed Jul 19 21:13:36 2006 +0100 +++ b/extras/mini-os/mm.c Tue Jul 25 10:59:02 2006 +0100 @@ -687,7 +687,7 @@ void *map_frames(unsigned long *f, unsig /* Find a run of n contiguous frames */ for (x = 0; x <= 1024 - n; x += y + 1) { for (y = 0; y < n; y++) - if (demand_map_pgt[y] & _PAGE_PRESENT) + if (demand_map_pgt[x+y] & _PAGE_PRESENT) break; if (y == n) break; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |