diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 20:32:44 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 20:32:44 +0000 |
commit | 5e77d12951fa5ce199fecebd56650558313c8aad (patch) | |
tree | 9b198a027d5f37f4b4838ce5a89bea16fb2c32ea /c/src/lib/libcpu/powerpc/shared | |
parent | *** empty log message *** (diff) | |
download | rtems-5e77d12951fa5ce199fecebd56650558313c8aad.tar.bz2 |
Patch from John Cotton <john.cotton@nrc.ca> to correct cache
routine naming to follow RTEMS package/object.method rule.
This patch also eliminated calls to the obsolete routine
m68k_enable_caching.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/shared')
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/src/cache.c | 36 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/shared/src/cache_.h | 8 |
2 files changed, 22 insertions, 22 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/src/cache.c b/c/src/lib/libcpu/powerpc/shared/src/cache.c index 4bc824904e..bbd7000b0a 100644 --- a/c/src/lib/libcpu/powerpc/shared/src/cache.c +++ b/c/src/lib/libcpu/powerpc/shared/src/cache.c @@ -42,7 +42,7 @@ ); \ } while (0) -void _CPU_enable_data_cache ( +void _CPU_cache_enable_data ( void ) { unsigned32 value; @@ -51,7 +51,7 @@ void _CPU_enable_data_cache ( PPC_Set_HID0( value ); } -void _CPU_disable_data_cache ( +void _CPU_cache_disable_data ( void ) { unsigned32 value; @@ -60,7 +60,7 @@ void _CPU_disable_data_cache ( PPC_Set_HID0( value ); } -void _CPU_enable_inst_cache ( +void _CPU_cache_enable_inst ( void ) { unsigned32 value; @@ -69,7 +69,7 @@ void _CPU_enable_inst_cache ( PPC_Set_HID0( value ); } -void _CPU_disable_inst_cache ( +void _CPU_cache_disable_inst ( void ) { unsigned32 value; @@ -85,26 +85,26 @@ void _CPU_disable_inst_cache ( #define isync \ __asm__ volatile ("isync\n"::) -void _CPU_flush_1_data_cache_line( +void _CPU_cache_flush_1_data_line( const void * _address ) { register const void *__address = _address; asm volatile ( "dcbf 0,%0" :: "r" (__address) ); } -void _CPU_invalidate_1_data_cache_line( +void _CPU_cache_invalidate_1_data_line( const void * _address ) { register const void *__address = _address; asm volatile ( "dcbi 0,%0" :: "r" (__address) ); } -void _CPU_flush_entire_data_cache ( void ) {} -void _CPU_invalidate_entire_data_cache ( void ) {} -void _CPU_freeze_data_cache ( void ) {} -void _CPU_unfreeze_data_cache ( void ) {} +void _CPU_cache_flush_entire_data ( void ) {} +void _CPU_cache_invalidate_entire_data ( void ) {} +void _CPU_cache_freeze_data ( void ) {} +void _CPU_cache_unfreeze_data ( void ) {} -void _CPU_enable_data_cache ( void ) +void _CPU_cache_enable_data ( void ) { unsigned32 r1; r1 = (0x2<<24); @@ -112,7 +112,7 @@ void _CPU_enable_data_cache ( void ) isync; } -void _CPU_disable_data_cache ( void ) +void _CPU_cache_disable_data ( void ) { unsigned32 r1; r1 = (0x4<<24); @@ -120,18 +120,18 @@ void _CPU_disable_data_cache ( void ) isync; } -void _CPU_invalidate_1_inst_cache_line( +void _CPU_cache_invalidate_1_inst_line( const void * _address ) { register const void *__address = _address; asm volatile ( "icbi 0,%0" :: "r" (__address) ); } -void _CPU_invalidate_entire_inst_cache ( void ) {} -void _CPU_freeze_inst_cache ( void ) {} -void _CPU_unfreeze_inst_cache ( void ) {} +void _CPU_cache_invalidate_entire_inst ( void ) {} +void _CPU_cache_freeze_inst ( void ) {} +void _CPU_cache_unfreeze_inst ( void ) {} -void _CPU_enable_inst_cache ( void ) +void _CPU_cache_enable_inst ( void ) { unsigned32 r1; r1 = (0x2<<24); @@ -139,7 +139,7 @@ void _CPU_enable_inst_cache ( void ) isync; } -void _CPU_disable_inst_cache ( void ) +void _CPU_cache_disable_inst ( void ) { unsigned32 r1; r1 = (0x4<<24); diff --git a/c/src/lib/libcpu/powerpc/shared/src/cache_.h b/c/src/lib/libcpu/powerpc/shared/src/cache_.h index ab14ca9c40..bff8874587 100644 --- a/c/src/lib/libcpu/powerpc/shared/src/cache_.h +++ b/c/src/lib/libcpu/powerpc/shared/src/cache_.h @@ -15,13 +15,13 @@ */ #if defined(ppc603) /* And possibly others */ -#define _CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT -#define _CPU_INST_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT +#define CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT +#define CPU_INSTRUCTION_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT #elif ( defined(mpc860) || defined(mpc821) ) -#define _CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT -#define _CPU_INST_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT +#define CPU_DATA_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT +#define CPU_INSTRUCTION_CACHE_ALIGNMENT PPC_CACHE_ALIGNMENT #endif |