aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorHuacai Chen <[email protected]>2024-02-23 14:36:31 +0800
committerHuacai Chen <[email protected]>2024-02-23 14:36:31 +0800
commit9fa304b9f8ec440e614af6d35826110c633c4074 (patch)
tree7248bc14d4346b14767a252c414f28c81b858725 /scripts/generate_rust_analyzer.py
parent752cd08da320a667a833803a8fd6bb266114cce5 (diff)
LoongArch: Call early_init_fdt_scan_reserved_mem() earlier
The unflatten_and_copy_device_tree() function contains a call to memblock_alloc(). This means that memblock is allocating memory before any of the reserved memory regions are set aside in the arch_mem_init() function which calls early_init_fdt_scan_reserved_mem(). Therefore, there is a possibility for memblock to allocate from any of the reserved memory regions. Hence, move the call to early_init_fdt_scan_reserved_mem() to be earlier in the init sequence, so that the reserved memory regions are set aside before any allocations are done using memblock. Cc: [email protected] Fixes: 88d4d957edc707e ("LoongArch: Add FDT booting support from efi system table") Signed-off-by: Oreoluwa Babatunde <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions