shithub: purgatorio

ref: ec35f468e0eba87c9f09cbbe5fa8af2591e6f914
dir: /emu/Linux/segflush-mips.S/

View raw version
#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)