forked from Imagelibrary/rtems
bsp/qoriq: Fix memory configuration
Take nocache section into account which may reside after the workspace.
This commit is contained in:
@@ -179,7 +179,12 @@ static void TEXT config_fdt_adjust(void)
|
||||
|
||||
size = MIN(size, 0x80000000U);
|
||||
|
||||
if (begin == 0 && size > (uintptr_t) bsp_section_work_end) {
|
||||
if (
|
||||
begin == 0
|
||||
&& size > (uintptr_t) bsp_section_work_end
|
||||
&& (uintptr_t) bsp_section_nocache_end
|
||||
< (uintptr_t) bsp_section_work_end
|
||||
) {
|
||||
config[WORKSPACE_ENTRY_INDEX].size += (uintptr_t) size
|
||||
- (uintptr_t) bsp_section_work_end;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user