|
@@ -87,7 +87,7 @@ static int __init allocate_cachealigned_memnodemap(void)
|
|
|
|
|
|
addr = 0x8000;
|
|
addr = 0x8000;
|
|
nodemap_size = roundup(sizeof(s16) * memnodemapsize, L1_CACHE_BYTES);
|
|
nodemap_size = roundup(sizeof(s16) * memnodemapsize, L1_CACHE_BYTES);
|
|
- nodemap_addr = memblock_find_in_range(addr, max_pfn<<PAGE_SHIFT,
|
|
|
|
|
|
+ nodemap_addr = memblock_find_in_range(addr, get_max_mapped(),
|
|
nodemap_size, L1_CACHE_BYTES);
|
|
nodemap_size, L1_CACHE_BYTES);
|
|
if (nodemap_addr == MEMBLOCK_ERROR) {
|
|
if (nodemap_addr == MEMBLOCK_ERROR) {
|
|
printk(KERN_ERR
|
|
printk(KERN_ERR
|