Changeset 6584eb2 in rtems


Ignore:
Timestamp:
03/08/17 09:34:24 (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
2433a8ab
Parents:
9cd20cd
git-author:
Sebastian Huber <sebastian.huber@…> (03/08/17 09:34:24)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/08/17 09:35:36)
Message:

bsp/qoriq: Fix memory configuration

Take nocache section into account which may reside after the workspace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/startup/mmu-config.c

    r9cd20cd r6584eb2  
    180180                size = MIN(size, 0x80000000U);
    181181
    182                 if (begin == 0 && size > (uintptr_t) bsp_section_work_end) {
     182                if (
     183                        begin == 0
     184                                && size > (uintptr_t) bsp_section_work_end
     185                                && (uintptr_t) bsp_section_nocache_end
     186                                        < (uintptr_t) bsp_section_work_end
     187                ) {
    183188                        config[WORKSPACE_ENTRY_INDEX].size += (uintptr_t) size
    184189                                - (uintptr_t) bsp_section_work_end;
Note: See TracChangeset for help on using the changeset viewer.