Commit Graph

24 Commits

Author SHA1 Message Date
Daniel Cederman
e7a42a0cfb score: Add missing define to cache manager 2014-08-25 08:52:05 +02:00
Daniel Cederman
ddbc3f8d83 score: Add SMP support to the cache manager
Adds functions that allows the user to specify which cores that should
perform the cache operation. SMP messages are sent to all the specified
cores and the caller waits until all cores have acknowledged that they
have flushed their cache. If CPU_CACHE_NO_INSTRUCTION_CACHE_SNOOPING is
defined the instruction cache invalidation function will perform the
operation on all cores using the previous method.
2014-08-22 13:10:59 +02:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
e1d7bf002e rtems: Add cache size functions
Add rtems_cache_get_data_cache_size() and
rtems_cache_get_instruction_cache_size().
2014-02-28 09:06:16 +01:00
Sebastian Huber
e7549ff4a1 rtems: Use size_t for cache line size
A cache line cannot have a negative size.
2014-02-28 08:59:02 +01:00
Aleksandr Platonov
fc6a0ae1a6 rtems_cache_invalidate_multiple_instruction_lines
According with comment in
rtems_cache_invalidate_multiple_instruction_lines(), final_address
indicates the last address which needs to be invalidated.  But if in
while loop we got final_address == i_addr condition then loop breaks and
final_address will not be invalidated.
2014-01-14 14:40:07 +01:00
Sebastian Huber
f55215a837 bsps: Fix cache manager support 2013-09-10 08:51:06 +02:00
Ric Claus
2bd440ed58 bsp/xilinx-zynq: Add cache support 2013-08-26 09:53:06 +02:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Ralf Corsepius
de5868fe37 2011-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1986/libcpu
	* shared/src/cache_aligned_malloc.c:
	Include <rtems/rtems/cache.h>.
2011-12-10 04:03:50 +00:00
Sebastian Huber
f3aa15c254 2011-06-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* shared/include/cache.h, shared/src/cache_manager.c: Removed include
	files to reduce implementation constraints.
2011-06-07 07:51:21 +00:00
Joel Sherrill
42ce03520b 2010-05-30 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/src/no_cache.c: New file.
2010-05-30 15:46:17 +00:00
Ralf Corsepius
359e537416 Whitespace removal. 2009-11-30 05:09:41 +00:00
Thomas Doerfler
da6142f0f2 remove file 2008-10-10 15:51:50 +00:00
Thomas Doerfler
9cabf5f300 shared/include/utility.h: New file. 2008-09-22 12:51:16 +00:00
Ralf Corsepius
73b5bd5d0e Remove stray white spaces. 2004-04-15 13:33:58 +00:00
Joel Sherrill
7c4a626318 2003-09-04 Joel Sherrill <joel@OARcorp.com>
* shared/include/cache.h, shared/src/cache_aligned_malloc.c,
	shared/src/cache_manager.c: URL for license changed.
2003-09-04 18:57:22 +00:00
Joel Sherrill
1a505aae33 2000-12-06 Joel Sherrill <joel@OARcorp.com>
* shared/src/cache_aligned_malloc.c: Added include of <stdlib.h>
	to eliminate warnings.
2000-12-06 15:47:02 +00:00
Joel Sherrill
cb887486ef 2000-11-14 Jiri Gaisler <jgais@ws.estec.esa.nl>
* shared/src/cache_manager.c
	(rtems_cache_invalidate_multiple_instruction_lines): If
	CPU_INSTRUCTION_CACHE_ALIGNMENT is defined but 0, then there is
	an instruction cache but no notion of line size.
2000-11-15 21:38:55 +00:00
Joel Sherrill
c5a60819c6 2000-10-18 John Cotton <john.cotton@nrc.ca>
* shared/include/cache.h: Improved file header.
2000-10-18 17:36:42 +00:00
Joel Sherrill
ec45e86d79 2000-10-12 Nick Simon <Nick.SIMON@syntegra.bt.co.uk>
* shared/src/cache_manager.c: Minor bug fix -- changed > to >= so the
	last address is invalidated.
2000-10-12 13:34:56 +00:00
Joel Sherrill
d2978ee987 2000-08-10 Charles-Antoine Gauthier <charles.gauthier@nrc.ca>
* 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.
2000-08-10 14:09:51 +00:00
Joel Sherrill
5e77d12951 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.
2000-06-14 20:32:44 +00:00
Joel Sherrill
cf1f72ea33 Moved i386 and m68k cache management code to libcpu. Everything
now is an implementation of the prototypes in rtems/rtems/cache.h.
The libcpu/i386/wrapup directory is no longer needed.
The PowerPC needs this done to it.
2000-06-13 21:53:38 +00:00