diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-12-10 04:03:24 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2007-12-10 04:03:24 +0000 |
commit | 87f08a6b37e7c689042eda258892cde8c5acb1f4 (patch) | |
tree | 912f3dd5fa8634f811c084ed9b5fb43b7687146f /c/src/lib/libcpu/nios2/shared | |
parent | 2007-12-10 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-87f08a6b37e7c689042eda258892cde8c5acb1f4.tar.bz2 |
Remove from rtems-4-8-branch.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libcpu/nios2/shared/cache/cache.c | 67 | ||||
-rw-r--r-- | c/src/lib/libcpu/nios2/shared/cache/cache_.h | 34 | ||||
-rw-r--r-- | c/src/lib/libcpu/nios2/shared/misc/memcpy.c | 21 |
3 files changed, 0 insertions, 122 deletions
diff --git a/c/src/lib/libcpu/nios2/shared/cache/cache.c b/c/src/lib/libcpu/nios2/shared/cache/cache.c deleted file mode 100644 index 25802a3999..0000000000 --- a/c/src/lib/libcpu/nios2/shared/cache/cache.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Cache Management Support Routines for the MC68040 - * - * $Id$ - */ - -#include <rtems.h> -#include "cache_.h" - -/* - * CACHE MANAGER: The following functions are CPU-specific. - * They provide the basic implementation for the rtems_* cache - * management routines. If a given function has no meaning for the CPU, - * it does nothing by default. - */ - -void _CPU_cache_freeze_data ( void ) {} -void _CPU_cache_unfreeze_data ( void ) {} -void _CPU_cache_freeze_instruction ( void ) {} -void _CPU_cache_unfreeze_instruction ( void ) {} - -void _CPU_cache_flush_1_data_line ( - const void * d_addr ) -{ - void * p_address = (void *) _CPU_virtual_to_physical( d_addr ); -} - -void _CPU_cache_invalidate_1_data_line ( - const void * d_addr ) -{ - void * p_address = (void *) _CPU_virtual_to_physical( d_addr ); -} - -void _CPU_cache_flush_entire_data ( void ) -{ -} - -void _CPU_cache_invalidate_entire_data ( void ) -{ -} - -void _CPU_cache_enable_data ( void ) -{ -} - -void _CPU_cache_disable_data ( void ) -{ -} - -void _CPU_cache_invalidate_1_instruction_line ( - const void * i_addr ) -{ - void * p_address = (void *) _CPU_virtual_to_physical( i_addr ); -} - -void _CPU_cache_invalidate_entire_instruction ( void ) -{ -} - -void _CPU_cache_enable_instruction ( void ) -{ -} - -void _CPU_cache_disable_instruction ( void ) -{ -} -/* end of file */ diff --git a/c/src/lib/libcpu/nios2/shared/cache/cache_.h b/c/src/lib/libcpu/nios2/shared/cache/cache_.h deleted file mode 100644 index 62a9fd8541..0000000000 --- a/c/src/lib/libcpu/nios2/shared/cache/cache_.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * M68K Cache Manager Support - */ - -#ifndef __M68K_CACHE_h -#define __M68K_CACHE_h - -#if (defined(__mc68020__) && !defined(__mcpu32__)) -# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16 -#elif defined(__mc68030__) -# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16 -# define M68K_DATA_CACHE_ALIGNMENT 16 -#elif ( defined(__mc68040__) || defined (__mc68060__) ) -# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16 -# define M68K_DATA_CACHE_ALIGNMENT 16 -#elif ( defined(__mcf5200__) ) -# define M68K_INSTRUCTION_CACHE_ALIGNMENT 16 -# if ( defined(__mcf528x__) ) -# define M68K_DATA_CACHE_ALIGNMENT 16 -# endif -#endif - -#if defined(M68K_DATA_CACHE_ALIGNMENT) -#define CPU_DATA_CACHE_ALIGNMENT M68K_DATA_CACHE_ALIGNMENT -#endif - -#if defined(M68K_INSTRUCTION_CACHE_ALIGNMENT) -#define CPU_INSTRUCTION_CACHE_ALIGNMENT M68K_INSTRUCTION_CACHE_ALIGNMENT -#endif - -#include <libcpu/cache.h> - -#endif -/* end of include file */ diff --git a/c/src/lib/libcpu/nios2/shared/misc/memcpy.c b/c/src/lib/libcpu/nios2/shared/misc/memcpy.c deleted file mode 100644 index ceae3c6548..0000000000 --- a/c/src/lib/libcpu/nios2/shared/misc/memcpy.c +++ /dev/null @@ -1,21 +0,0 @@ -/* - * C library memcpy routine - * - * This routine shall get code to optimize performance on NIOS II - * - * The routine is placed in this source directory to ensure that it - * is picked up by all applications. - */ - -#include <string.h> - -void * -memcpy(void *s1, const void *s2, size_t n) -{ - char *p1 = s1; - const char *p2 = s2; - size_t left = n; - - while(left > 0) *(p1++) = *(p2++); - return s1; -} |