Changeset d2978ee9 in rtems for c/src/lib/libcpu/shared


Ignore:
Timestamp:
Aug 10, 2000, 2:09:51 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
4a5578a
Parents:
e94ad1fe
Message:

2000-08-10 Charles-Antoine Gauthier <charles.gauthier@…>

  • shared/src/cache_manager.c (rtems_cache_flush_multiple_data_lines, rtems_cache_invalidate_multiple_data_lines): Do not operate on the entire address space when flushing zero bytes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/shared/src/cache_manager.c

    re94ad1fe rd2978ee9  
    5858  */
    5959
     60  if( n_bytes == 0 )
     61    /* Do nothing if number of bytes to flush is zero */
     62    return;
     63   
    6064  final_address = (void *)((size_t)d_addr + n_bytes - 1);
    6165  d_addr = (void *)((size_t)d_addr & ~(CPU_DATA_CACHE_ALIGNMENT - 1));
     
    8690  */
    8791
     92  if( n_bytes == 0 )
     93    /* Do nothing if number of bytes to invalidate is zero */
     94    return;
     95   
    8896  final_address = (void *)((size_t)d_addr + n_bytes - 1);
    8997  d_addr = (void *)((size_t)d_addr & ~(CPU_DATA_CACHE_ALIGNMENT - 1));
     
    209217  */
    210218
     219  if( n_bytes == 0 )
     220    /* Do nothing if number of bytes to invalidate is zero */
     221    return;
     222   
    211223  final_address = (void *)((size_t)i_addr + n_bytes - 1);
    212224  i_addr = (void *)((size_t)i_addr & ~(CPU_INSTRUCTION_CACHE_ALIGNMENT - 1));
Note: See TracChangeset for help on using the changeset viewer.