Changeset 2b885d6 in rtems


Ignore:
Timestamp:
Jul 3, 2016, 4:24:27 PM (3 years ago)
Author:
Pavel Pisa <pisa@…>
Branches:
master
Children:
0616555
Parents:
d4316537
git-author:
Pavel Pisa <pisa@…> (07/03/16 16:24:27)
git-committer:
Pavel Pisa <pisa@…> (07/04/16 13:55:57)
Message:

libdl/rtl-obj.c: ensure that loaded code is synchronized through caches.

Synchronize each cluster of sections of the same type separately
to support even cases where text and data are allocated from different
areas (for example due allocation from different MPU protection regions).

rtems_cache_instruction_sync_after_code_change is called even to data
sections. Propagation of data only changes should not require cache
maintenance operation on sane SMP mutithread capable systems if barrier
instruction is added but be on safe side even for case where self
modifying code uses data sections initial values etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libdl/rtl-obj.c

    rd4316537 r2b885d6  
    618618      first = false;
    619619    }
     620
     621    rtems_cache_instruction_sync_after_code_change(base, base_offset);
    620622
    621623    node = rtems_chain_next (node);
Note: See TracChangeset for help on using the changeset viewer.