We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7a9af8 commit e7e846dCopy full SHA for e7e846d
arch/powerpc/kernel/setup-common.c
@@ -959,6 +959,7 @@ void __init setup_arch(char **cmdline_p)
959
mem_topology_setup();
960
/* Set max_mapnr before paging_init() */
961
set_max_mapnr(max_pfn);
962
+ high_memory = (void *)__va(max_low_pfn * PAGE_SIZE);
963
964
/*
965
* Release secondary cpus out of their spinloops at 0x60 now that
arch/powerpc/mm/mem.c
@@ -290,8 +290,6 @@ void __init mem_init(void)
290
swiotlb_init(ppc_swiotlb_enable, ppc_swiotlb_flags);
291
#endif
292
293
- high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);
294
-
295
kasan_late_init();
296
297
memblock_free_all();
0 commit comments