Commit 4e460f65 authored by Max Filippov's avatar Max Filippov

xtensa: support memtest

Call early_memtest from the bootmem_init to run memtest if it's
configured and enabled.
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent 03760270
......@@ -60,6 +60,9 @@ void __init bootmem_init(void)
max_pfn = PFN_DOWN(memblock_end_of_DRAM());
max_low_pfn = min(max_pfn, MAX_LOW_PFN);
early_memtest((phys_addr_t)min_low_pfn << PAGE_SHIFT,
(phys_addr_t)max_low_pfn << PAGE_SHIFT);
memblock_set_current_limit(PFN_PHYS(max_low_pfn));
dma_contiguous_reserve(PFN_PHYS(max_low_pfn));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment