diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-11-27 12:15:06 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-11-27 12:15:06 +0000 |
commit | 3f381864a5ef7197de8f0fe9c4bbd7f978b18ff8 (patch) | |
tree | cf7b41aef0c587ad544ba4b5f83d955a610723f7 /c/src/lib/libcpu/powerpc/old_exception_processing/ppccache.c | |
parent | 2001-11-26 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff) | |
download | rtems-3f381864a5ef7197de8f0fe9c4bbd7f978b18ff8.tar.bz2 |
2001-11-27 Joel Sherrill <joel@OARcorp.com>,
* new_exception_processing/Makefile.in,
new_exception_processing/.cvsignore,
new_exception_processing/Makefile.am,
new_exception_processing/c_isr.inl,
new_exception_processing/cpu.c, new_exception_processing/cpu.h,
new_exception_processing/cpu_asm.S,
old_exception_processing/Makefile.in,
old_exception_processing/.cvsignore,
old_exception_processing/Makefile.am, old_exception_processing/README,
old_exception_processing/TODO, old_exception_processing/c_isr.inl,
old_exception_processing/cpu.c, old_exception_processing/cpu.h,
old_exception_processing/cpu_asm.S, old_exception_processing/irq_stub.S,
old_exception_processing/ppc_offs.h,
old_exception_processing/ppccache.c, old_exception_processing/rtems.S:
Deleted since now under libbsp.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/powerpc/old_exception_processing/ppccache.c | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/c/src/lib/libcpu/powerpc/old_exception_processing/ppccache.c b/c/src/lib/libcpu/powerpc/old_exception_processing/ppccache.c deleted file mode 100644 index ecfb4b96ca..0000000000 --- a/c/src/lib/libcpu/powerpc/old_exception_processing/ppccache.c +++ /dev/null @@ -1,61 +0,0 @@ -/* - * PowerPC Cache enable routines - * - * $Id$ - */ - -#include <rtems/system.h> - -#define PPC_Get_HID0( _value ) \ - do { \ - _value = 0; /* to avoid warnings */ \ - asm volatile( \ - "mfspr %0, 0x3f0;" /* get HID0 */ \ - "isync" \ - : "=r" (_value) \ - : "0" (_value) \ - ); \ - } while (0) - -#define PPC_Set_HID0( _value ) \ - do { \ - asm volatile( \ - "isync;" \ - "mtspr 0x3f0, %0;" /* load HID0 */ \ - "isync" \ - : "=r" (_value) \ - : "0" (_value) \ - ); \ - } while (0) - - -void powerpc_instruction_cache_enable () -{ - unsigned32 value; - - /* - * Enable the instruction cache - */ - - PPC_Get_HID0( value ); - - value |= 0x00008000; /* Set ICE bit */ - - PPC_Set_HID0( value ); -} - -void powerpc_data_cache_enable () -{ - unsigned32 value; - - /* - * enable data cache - */ - - PPC_Get_HID0( value ); - - value |= 0x00004000; /* set DCE bit */ - - PPC_Set_HID0( value ); -} - |