Rev 540 | Rev 693 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 540 | Rev 564 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | frame_region_not_free(BOOTSTRAP_OFFSET, hardcoded_unmapped_ktext_size + hardcoded_unmapped_kdata_size); |
55 | frame_region_not_free(BOOTSTRAP_OFFSET, hardcoded_unmapped_ktext_size + hardcoded_unmapped_kdata_size); |
56 | 56 | ||
57 | for (i = 0; i < e820counter; i++) { |
57 | for (i = 0; i < e820counter; i++) { |
58 | if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) { |
58 | if (e820table[i].type == MEMMAP_MEMORY_AVAILABLE) { |
59 | zone_create_in_region(e820table[i].base_address, e820table[i].size & ~(FRAME_SIZE-1)); |
59 | zone_create_in_region(e820table[i].base_address, e820table[i].size & ~(FRAME_SIZE-1)); |
60 | if (last_frame < ALIGN(e820table[i].base_address + e820table[i].size, FRAME_SIZE)) |
60 | if (last_frame < ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE)) |
61 | last_frame = ALIGN(e820table[i].base_address + e820table[i].size, FRAME_SIZE); |
61 | last_frame = ALIGN_UP(e820table[i].base_address + e820table[i].size, FRAME_SIZE); |
62 | } |
62 | } |
63 | } |
63 | } |
64 | } |
64 | } |
65 | } |
65 | } |