1*63adbe29Snjoly.\" $NetBSD: m68k_sync_icache.2,v 1.11 2011/03/27 12:48:41 njoly Exp $ 2b0f69749Sis.\" 3b0f69749Sis.\" Copyright (c) 1999 The NetBSD Foundation, Inc. 4b0f69749Sis.\" All rights reserved. 5b0f69749Sis.\" 6b0f69749Sis.\" This code is derived from software contributed to The NetBSD Foundation 7b0f69749Sis.\" by Ignatios Souvatzis. 8b0f69749Sis.\" 9b0f69749Sis.\" Redistribution and use in source and binary forms, with or without 10b0f69749Sis.\" modification, are permitted provided that the following conditions 11b0f69749Sis.\" are met: 12b0f69749Sis.\" 1. Redistributions of source code must retain the above copyright 13b0f69749Sis.\" notice, this list of conditions and the following disclaimer. 14b0f69749Sis.\" 2. Redistributions in binary form must reproduce the above copyright 15b0f69749Sis.\" notice, this list of conditions and the following disclaimer in the 16b0f69749Sis.\" documentation and/or other materials provided with the distribution. 17b0f69749Sis.\" 18b0f69749Sis.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19b0f69749Sis.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20b0f69749Sis.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21b0f69749Sis.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22b0f69749Sis.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23b0f69749Sis.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24b0f69749Sis.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25b0f69749Sis.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26b0f69749Sis.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27b0f69749Sis.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28b0f69749Sis.\" POSSIBILITY OF SUCH DAMAGE. 29b0f69749Sis.\" 30b0f69749Sis.Dd February 9, 1998 312a9570dfSkleink.Dt M68K_SYNC_ICACHE 2 m68k 3238c96853Sgarbled.Os 33b0f69749Sis.Sh NAME 34b0f69749Sis.Nm m68k_sync_icache 35a7c547dfSkleink.Nd instruction cache synchronization 36b0f69749Sis.Sh LIBRARY 37b0f69749Sis.Lb libm68k 38b0f69749Sis.Sh SYNOPSIS 39472351e1Swiz.In sys/types.h 40472351e1Swiz.In m68k/sync_icache.h 41b0f69749Sis.Ft void 42b0f69749Sis.Fn m68k_sync_icache "void *start" "size_t size" 43b0f69749Sis.Sh DESCRIPTION 44b0f69749Sis.Fn m68k_sync_icache 45b0f69749Sissynchronizes data and instruction caches over the specified region. 46b0f69749SisIt should be called prior to executing newly generated code. 47b0f69749Sis.Pp 48b0f69749SisThe affected address range starts at 49b0f69749Sis.Fa start 50b0f69749Sisand continues for 51b0f69749Sis.Fa size 52de0b517cSwizbytes. 53de0b517cSwizIf 54b0f69749Sis.Fa start 55b0f69749Sisis 0, all the address space of the current execution thread is affected. 56b0f69749SisAddresses outside the specified region may be synchronized, too. 57b0f69749Sis.Pp 58b0f69749SisThe call always succeeds. 59b0f69749Sis.Sh SEE ALSO 60*63adbe29Snjoly.Xr arm_sync_icache 2 61b0f69749Sis.Sh HISTORY 62b0f69749Sis.Fn m68k_sync_icache 63b0f69749Sisappeared first in 64b0f69749Sis.Nx 1.4 . 65b0f69749Sis.Sh AUTHORS 66b0f69749SisIgnatios Souvatzis 67