mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
arch/intel64: prase multiboot2 header before revoking the lower memory
__revoke_low_memory() is called in intel64_lowsetup()
fixes b4b96a6435 (PR #11758) in which the multiboot2 header was accessed
after revoking the low memory which caused page fault.
Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
committed by
Xiang Xiao
parent
8c4612be50
commit
5c85b8618c
@@ -125,16 +125,16 @@ void __nxstart(void)
|
||||
*dest++ = 0;
|
||||
}
|
||||
|
||||
/* Low-level, pre-OS initialization */
|
||||
|
||||
intel64_lowsetup();
|
||||
|
||||
#ifdef CONFIG_ARCH_MULTIBOOT2
|
||||
/* Handle multiboot2 info */
|
||||
|
||||
x86_64_mb2_config();
|
||||
#endif
|
||||
|
||||
/* Low-level, pre-OS initialization */
|
||||
|
||||
intel64_lowsetup();
|
||||
|
||||
/* perform board-specific initializations */
|
||||
|
||||
x86_64_boardinitialize();
|
||||
|
||||
Reference in New Issue
Block a user