Changeset ff9d889 in rtems


Ignore:
Timestamp:
Nov 14, 2007, 12:42:18 AM (12 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 4.9, master
Children:
8231b5e
Parents:
a10c721
Message:

2007-11-13 Till Straumann <strauman@…>

  • shared/src/cache.c: moved generic operations (flush/invalidate 1 data line, invalidate 1 inst. line) from #ifdef <cpu_flavor> to general section (all CPUs).
Location:
c/src/lib/libcpu/powerpc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/ChangeLog

    ra10c721 rff9d889  
     12007-11-13      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * shared/src/cache.c: moved generic operations
     4        (flush/invalidate 1 data line, invalidate 1 inst. line)
     5        from #ifdef <cpu_flavor> to general section (all CPUs).
     6
    172007-11-13      Till Straumann <strauman@slac.stanford.edu>
    28
  • c/src/lib/libcpu/powerpc/shared/src/cache.c

    ra10c721 rff9d889  
    6363}
    6464
    65 void _CPU_cache_invalidate_1_data_line(
    66         const void * _address )
    67 {
    68   register const void *__address = _address;
    69   asm volatile ( "dcbi 0,%0" :: "r"(__address) : "memory" );
    70 }
    71 
    7265void _CPU_cache_invalidate_entire_data (
    7366        void )
     
    9790  value &= ~HID0_DLOCK;        /* set data cache lock bit */
    9891  PPC_Set_HID0( value );
    99 }
    100 
    101 void _CPU_cache_flush_1_data_line(
    102         const void * _address )
    103 {
    104   register const void *__address = _address;
    105   asm volatile ( "dcbf 0,%0" :: "r" (__address) : "memory" );
    10692}
    10793
     
    132118}
    133119
    134 void _CPU_cache_invalidate_1_instruction_line(
    135         const void * _address )
    136 {
    137   register const void *__address = _address;
    138   asm volatile ( "icbi 0,%0" :: "r" (__address) : "memory");
    139 }
    140120
    141121void _CPU_cache_invalidate_entire_instruction (
     
    238218#endif
    239219
     220void _CPU_cache_invalidate_1_data_line(
     221        const void * _address )
     222{
     223  register const void *__address = _address;
     224  asm volatile ( "dcbi 0,%0" :: "r"(__address) : "memory" );
     225}
     226
     227void _CPU_cache_flush_1_data_line(
     228        const void * _address )
     229{
     230  register const void *__address = _address;
     231  asm volatile ( "dcbf 0,%0" :: "r" (__address) : "memory" );
     232}
     233
     234
     235void _CPU_cache_invalidate_1_instruction_line(
     236        const void * _address )
     237{
     238  register const void *__address = _address;
     239  asm volatile ( "icbi 0,%0" :: "r" (__address) : "memory");
     240}
     241
    240242/* end of file */
Note: See TracChangeset for help on using the changeset viewer.