From a028e70029bf736f1703dd4a413b97fa28954b5c Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 10 Apr 2003 20:07:57 +0000 Subject: [PATCH] 2003-04-09 Chris Demetriou * mips/cfe.c (_flush_cache): New function. --- libgloss/ChangeLog | 4 ++++ libgloss/mips/cfe.c | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index b25e9eaac..bfce287cb 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,7 @@ +2003-04-09 Chris Demetriou + + * mips/cfe.c (_flush_cache): New function. + 2003-02-18 Richard Sandiford * mips/nullmon.c (_ftext, _end): Adjust declaration. diff --git a/libgloss/mips/cfe.c b/libgloss/mips/cfe.c index db1501ca0..0b0865eae 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; +}