Re: sysarch(2) syscall to sync icache

Valery Ushakov <[email protected]> Fri, 20 Oct 2017 15:19:23 +0300
Newsgroups gmane.os.netbsd.ports.sh3
Message-ID <[email protected]>
On Fri, Oct 20, 2017 at 11:55:21 +0000, Christos Zoulas wrote:

> In article <[email protected]>,
> Valery Ushakov  <[email protected]> wrote:
> >-=-=-=-=-=-
> >
> >Re http://gnats.netbsd.org/52260
> >
> >Does attached patch look ok?  This is only the kernel part, the
> >lib/libarch counterpart is mechanical.
> 
> Why not make the address argument void *? Isn't it more natural for
> userland?

I was just copy-pasting arm :)

MIPS uses vaddr_t and doesn't seem to have the C wrapper in libarch.

PPC has __syncicache(void *from, size_t len) in libc that doesn't use
a syscall.

-uwe