Commit 7d41c411 by Richard Kenner

(cacheflush): Add SONY NEWS-OS 4.2 version.

From-SVN: r13279
parent e34fc615
...@@ -2801,6 +2801,34 @@ __enable_execute_stack () ...@@ -2801,6 +2801,34 @@ __enable_execute_stack ()
} }
} }
#endif /* __pyr__ */ #endif /* __pyr__ */
#if defined (sony_news) && defined (SYSTYPE_BSD)
#include <stdio.h>
#include <sys/types.h>
#include <sys/param.h>
#include <syscall.h>
#include <machine/sysnews.h>
/* cacheflush function for NEWS-OS 4.2.
This function is called from trampoline-initialize code
defined in config/mips/mips.h. */
void
cacheflush (beg,size,flag)
char *beg;
int size;
int flag;
{
if (syscall (SYS_sysnews, NEWS_CACHEFLUSH, beg, size, FLUSH_BCACHE))
{
perror ("cache_flush");
fflush (stderr);
abort ();
}
}
#endif /* sony_news */
#endif /* L_trampoline */ #endif /* L_trampoline */
#ifdef L__main #ifdef L__main
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment