[maemo-developers] Instructions cache flush on ARM (was: N800 & Video playback)

From: Guillem Jover guillem.jover at nokia.com
Date: Mon Apr 23 16:49:46 EEST 2007
On Mon, 2007-04-23 at 16:11:17 +0800, ext 黄涛 wrote:
> 2007/4/23, Siarhei Siamashka <siarhei.siamashka at gmail.com>:
> > Thanks, it works. But I'm worried about [1]. Looks like EABI has a new
> > syscall interface and this code from qemu uses old ABI. And from reading
> > description at the wiki page, compatibility with old ABI can be disabled
> > (and it makes sense disabling it as this compatibility reduces
> > performance a bit).
> 
> You are right. gcc has function
> void __clear_cache (char *BEG, char *END)
> which should be more portable.

It should, but it still has the problem of emitting an OABI syscall
due to our old gcc.

You could use syscall(2) and __ARM_NR_cacheflush instead.

regards,
guillem

More information about the maemo-developers mailing list