1*ffb49e5bSalnsn /* $NetBSD: sljit_rump.c,v 1.1 2014/07/23 07:16:14 alnsn Exp $ */
2*ffb49e5bSalnsn
3*ffb49e5bSalnsn /*-
4*ffb49e5bSalnsn * Copyright (c) 2014 Alexander Nasonov.
5*ffb49e5bSalnsn * All rights reserved.
6*ffb49e5bSalnsn *
7*ffb49e5bSalnsn * Redistribution and use in source and binary forms, with or without
8*ffb49e5bSalnsn * modification, are permitted provided that the following conditions
9*ffb49e5bSalnsn * are met:
10*ffb49e5bSalnsn * 1. Redistributions of source code must retain the above copyright
11*ffb49e5bSalnsn * notice, this list of conditions and the following disclaimer.
12*ffb49e5bSalnsn * 2. Redistributions in binary form must reproduce the above copyright
13*ffb49e5bSalnsn * notice, this list of conditions and the following disclaimer in the
14*ffb49e5bSalnsn * documentation and/or other materials provided with the distribution.
15*ffb49e5bSalnsn *
16*ffb49e5bSalnsn * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
17*ffb49e5bSalnsn * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18*ffb49e5bSalnsn * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19*ffb49e5bSalnsn * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20*ffb49e5bSalnsn * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21*ffb49e5bSalnsn * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22*ffb49e5bSalnsn * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23*ffb49e5bSalnsn * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24*ffb49e5bSalnsn * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25*ffb49e5bSalnsn * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26*ffb49e5bSalnsn * SUCH DAMAGE.
27*ffb49e5bSalnsn */
28*ffb49e5bSalnsn
29*ffb49e5bSalnsn #include <sys/cdefs.h>
30*ffb49e5bSalnsn __KERNEL_RCSID(0, "$NetBSD: sljit_rump.c,v 1.1 2014/07/23 07:16:14 alnsn Exp $");
31*ffb49e5bSalnsn
32*ffb49e5bSalnsn #ifndef _KERNEL
33*ffb49e5bSalnsn
34*ffb49e5bSalnsn #include <sys/types.h>
35*ffb49e5bSalnsn
36*ffb49e5bSalnsn #include <machine/sysarch.h>
37*ffb49e5bSalnsn #include <machine/types.h>
38*ffb49e5bSalnsn
39*ffb49e5bSalnsn #include "sljit_rump.h"
40*ffb49e5bSalnsn
41*ffb49e5bSalnsn int
rumpcomp_sync_icache(void * addr,uint64_t len)42*ffb49e5bSalnsn rumpcomp_sync_icache(void *addr, uint64_t len)
43*ffb49e5bSalnsn {
44*ffb49e5bSalnsn
45*ffb49e5bSalnsn return arm_sync_icache((uintptr_t)addr, (size_t)len);
46*ffb49e5bSalnsn }
47*ffb49e5bSalnsn #endif
48