bsp/qoriq: Fix memory configuration

Take nocache section into account which may reside after the workspace.
This commit is contained in:
Sebastian Huber
2017-03-08 10:34:24 +01:00
parent 9cd20cde4d
commit 6584eb2830

View File

@@ -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;
}