aboutsummaryrefslogtreecommitdiff
path: root/libgloss/mips
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-04-10 20:07:57 +0000
committerJeff Johnston <jjohnstn@redhat.com>2003-04-10 20:07:57 +0000
commita028e70029bf736f1703dd4a413b97fa28954b5c (patch)
tree036bdfa967bd541ab3aa36635ca4f9a070e77ef4 /libgloss/mips
parent2a1e8e117e7f82940c48be08084d1c2f8c36b0a7 (diff)
downloadnewlib-a028e70029bf736f1703dd4a413b97fa28954b5c.zip
newlib-a028e70029bf736f1703dd4a413b97fa28954b5c.tar.gz
newlib-a028e70029bf736f1703dd4a413b97fa28954b5c.tar.bz2
2003-04-09 Chris Demetriou <cgd@broadcom.com>
* mips/cfe.c (_flush_cache): New function.
Diffstat (limited to 'libgloss/mips')
-rw-r--r--libgloss/mips/cfe.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libgloss/mips/cfe.c b/libgloss/mips/cfe.c
index db1501c..0b0865e 100644
--- a/libgloss/mips/cfe.c
+++ b/libgloss/mips/cfe.c
@@ -127,3 +127,13 @@ get_mem_info (mem)
don't have enough stack to do that (yet). */
mem->size = 0x4000000; /* Assume 64 MB of RAM */
}
+
+/* This is the MIPS cache flush function call. No defines are provided
+ by libgloss for 'cache', and CFE doesn't let you flush ranges, so
+ we just flush all I & D for every call. */
+int
+_flush_cache (char *addr, int nbytes, int cache)
+{
+ cfe_flushcache (0);
+ return 0;
+}