内存管理之内存初始化内存管理...

This commit is contained in:
gatieme committed 2016-08-09 16:59:16 +08:00
1 parent 242191070e
commit 7ddbab9a97
2 files changed
+198 -9

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
void __init bootmem_init(void)
{
unsigned long min, max;
min = PFN_UP(memblock_start_of_DRAM());
max = PFN_DOWN(memblock_end_of_DRAM());
early_memtest(min << PAGE_SHIFT, max << PAGE_SHIFT);
max_pfn = max_low_pfn = max;
arm64_numa_init();
/*
* Sparsemem tries to allocate bootmem in memory_present(), so must be
* done after the fixed reservations.
*/
arm64_memory_present();
sparse_init();
zone_sizes_init(min, max);
high_memory = __va((max << PAGE_SHIFT) - 1) + 1;
memblock_dump_all();
File diff suppressed because it is too large. Load diff