mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
[XEN] Fix memory allocator after recent bootmem change.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
23496e5afb
commit
afd2aabff9
1 file changed
+3
-1
@@ -295,7 +295,7 @@ static DEFINE_SPINLOCK(heap_lock);
|
||||
void end_boot_allocator(void)
|
||||
{
|
||||
unsigned long i, j, k;
|
||||
int curr_free = 0, next_free = 0;
|
||||
int curr_free, next_free;
|
||||
|
||||
memset(avail, 0, sizeof(avail));
|
||||
|
||||
@@ -305,6 +305,8 @@ void end_boot_allocator(void)
|
||||
INIT_LIST_HEAD(&heap[i][j][k]);
|
||||
|
||||
/* Pages that are free now go to the domain sub-allocator. */
|
||||
if ( (curr_free = next_free = !allocated_in_map(first_valid_mfn)) )
|
||||
map_alloc(first_valid_mfn, 1);
|
||||
for ( i = first_valid_mfn; i < max_page; i++ )
|
||||
{
|
||||
curr_free = next_free;
|
||||
|
||||