From 670ad9fd106bdb02ba2045198fcaf89960d3ec40 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 10 Jun 2013 01:33:34 +0200 Subject: Add missing 4KiB memory * i386/i386at/model_dep.c (init_alloc_aligned): Let allocated area last until end of memory map. --- i386/i386at/model_dep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i386') diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index 9c53243..d97f085 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -756,7 +756,7 @@ init_alloc_aligned(vm_size_t size, vm_offset_t *addrp) unsigned long long start = map->BaseAddr; unsigned long long end = start + map->Length;; - if (start <= addr && avail_next < end) + if (start <= addr && avail_next <= end) { /* Ok, fits in the current map */ current = map; -- cgit v1.2.3