diff options
Diffstat (limited to 'arch/arm/mm/init.c')
-rw-r--r-- | arch/arm/mm/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 5164069ced4..14a00a1ef52 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -344,7 +344,7 @@ void __init bootmem_init(void) | |||
344 | */ | 344 | */ |
345 | arm_bootmem_free(min, max_low, max_high); | 345 | arm_bootmem_free(min, max_low, max_high); |
346 | 346 | ||
347 | high_memory = __va((max_low << PAGE_SHIFT) - 1) + 1; | 347 | high_memory = __va(((phys_addr_t)max_low << PAGE_SHIFT) - 1) + 1; |
348 | 348 | ||
349 | /* | 349 | /* |
350 | * This doesn't seem to be used by the Linux memory manager any | 350 | * This doesn't seem to be used by the Linux memory manager any |
@@ -392,8 +392,8 @@ free_memmap(unsigned long start_pfn, unsigned long end_pfn) | |||
392 | * Convert to physical addresses, and | 392 | * Convert to physical addresses, and |
393 | * round start upwards and end downwards. | 393 | * round start upwards and end downwards. |
394 | */ | 394 | */ |
395 | pg = PAGE_ALIGN(__pa(start_pg)); | 395 | pg = (unsigned long)PAGE_ALIGN(__pa(start_pg)); |
396 | pgend = __pa(end_pg) & PAGE_MASK; | 396 | pgend = (unsigned long)__pa(end_pg) & PAGE_MASK; |
397 | 397 | ||
398 | /* | 398 | /* |
399 | * If there are free pages between these, | 399 | * If there are free pages between these, |