summaryrefslogtreecommitdiff
path: root/emu/Linux/segflush-spim.S
blob: 458172fa58a9341d114a97609eaed03f18dfeb02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "syscall.h"
#include <sys/asm.h>
#include <sys/regdef.h>
#include <asm/cachectl.h>

/*
 * int segflush(void *p, ulong len)
 */

LEAF(segflush)
	li	a2,BCACHE
	li	v0,SYS_cacheflush
	syscall
	li	v0,0
	j	$31
	END(segflush)