1219820Sjeff/* $NetBSD$ */ 2219820Sjeff 3219820Sjeff/*- 4219820Sjeff * Copyright (c) 2014 Alexander Nasonov. 5219820Sjeff * All rights reserved. 6219820Sjeff * 7219820Sjeff * Redistribution and use in source and binary forms, with or without 8219820Sjeff * modification, are permitted provided that the following conditions 9219820Sjeff * are met: 10219820Sjeff * 1. Redistributions of source code must retain the above copyright 11219820Sjeff * notice, this list of conditions and the following disclaimer. 12219820Sjeff * 2. Redistributions in binary form must reproduce the above copyright 13219820Sjeff * notice, this list of conditions and the following disclaimer in the 14219820Sjeff * documentation and/or other materials provided with the distribution. 15219820Sjeff * 16219820Sjeff * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS 17219820Sjeff * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 18219820Sjeff * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19219820Sjeff * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20219820Sjeff * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21219820Sjeff * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22219820Sjeff * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23219820Sjeff * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24219820Sjeff * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25219820Sjeff * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26219820Sjeff * SUCH DAMAGE. 27219820Sjeff */ 28219820Sjeff 29219820Sjeff#include <sys/cdefs.h> 30219820Sjeff__KERNEL_RCSID(0, "$NetBSD$"); 31219820Sjeff 32219820Sjeff#ifndef _KERNEL 33 34#include <sys/types.h> 35 36#include <machine/sysarch.h> 37#include <machine/types.h> 38 39#include "sljit_rump.h" 40 41int 42rumpcomp_sync_icache(void *addr, uint64_t len) 43{ 44 45 return arm_sync_icache((uintptr_t)addr, (size_t)len); 46} 47#endif 48