[XEN] Fix memory allocator after recent bootmem change.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2006-12-14 15:43:40 +00:00
1 parent 23496e5afb
commit afd2aabff9
1 file changed
+3 -1
+3 -1
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.