diff options
Diffstat (limited to 'arch/mips/mm/init.c')
-rw-r--r-- | arch/mips/mm/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 2de4d3c367a2..304991263f6b 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -90,9 +90,9 @@ unsigned long setup_zero_pages(void) | |||
90 | if (!empty_zero_page) | 90 | if (!empty_zero_page) |
91 | panic("Oh boy, that early out of memory?"); | 91 | panic("Oh boy, that early out of memory?"); |
92 | 92 | ||
93 | page = virt_to_page(empty_zero_page); | 93 | page = virt_to_page((void *)empty_zero_page); |
94 | split_page(page, order); | 94 | split_page(page, order); |
95 | while (page < virt_to_page(empty_zero_page + (PAGE_SIZE << order))) { | 95 | while (page < virt_to_page((void *)(empty_zero_page + (PAGE_SIZE << order)))) { |
96 | SetPageReserved(page); | 96 | SetPageReserved(page); |
97 | page++; | 97 | page++; |
98 | } | 98 | } |
@@ -448,8 +448,8 @@ void free_init_pages(char *what, unsigned long begin, unsigned long end) | |||
448 | unsigned long addr; | 448 | unsigned long addr; |
449 | 449 | ||
450 | for (addr = begin; addr < end; addr += PAGE_SIZE) { | 450 | for (addr = begin; addr < end; addr += PAGE_SIZE) { |
451 | ClearPageReserved(virt_to_page(addr)); | 451 | ClearPageReserved(virt_to_page((void *)addr)); |
452 | init_page_count(virt_to_page(addr)); | 452 | init_page_count(virt_to_page((void *)addr)); |
453 | memset((void *)addr, 0xcc, PAGE_SIZE); | 453 | memset((void *)addr, 0xcc, PAGE_SIZE); |
454 | free_page(addr); | 454 | free_page(addr); |
455 | totalram_pages++; | 455 | totalram_pages++; |