Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: arm_sync_icache on aarch64



Alexander Nasonov <alnsn%yandex.ru@localhost> wrote:
>The following program can't be linked on my Pinebbook:
>
>#include <machine/sysarch.h>
>
>int main()
>{
>	return arm_sync_icache(0, 4096);
>}
>
>and I can't find an equivalent of libarm on aarch64.
>
>The kernel side has aarch64_icache_sync_range() and it's not an empty
>stub: 
>
>$ nm -S /netbsd  | grep aarch64_icache_sync_range
>ffffffc00005f5e0 0000000000000054 T aarch64_icache_sync_range
>
>I need this function for rump stubs to sljit. I think I can use
>sysarch(ARM_SYNC_ICACHE) but I'm not sure which approach is better.

I asked about this a couple of weeks ago:

<http://mail-index.netbsd.org/port-arm/2018/11/12/msg005207.html>

The suggestion was to use __builtin___clear_cache(), which does seem
to be supported in both gcc and clang.

Robert Swindells



Home | Main Index | Thread Index | Old Index