xref: /netbsd-src/lib/libarch/m68k/m68k_sync_icache.S (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin/* 	$NetBSD: m68k_sync_icache.S,v 1.4 2008/04/28 20:22:55 martin Exp $	*/
2b0f69749Sis
3b0f69749Sis/*-
4b0f69749Sis * Copyright (c) 1999 The NetBSD Foundation, Inc.
5b0f69749Sis * All rights reserved.
6b0f69749Sis *
7b0f69749Sis * This code is derived from software contributed to The NetBSD Foundation
8b0f69749Sis * by Ignatios Souvatzis.
9b0f69749Sis *
10b0f69749Sis * Redistribution and use in source and binary forms, with or without
11b0f69749Sis * modification, are permitted provided that the following conditions
12b0f69749Sis * are met:
13b0f69749Sis * 1. Redistributions of source code must retain the above copyright
14b0f69749Sis *    notice, this list of conditions and the following disclaimer.
15b0f69749Sis * 2. Redistributions in binary form must reproduce the above copyright
16b0f69749Sis *    notice, this list of conditions and the following disclaimer in the
17b0f69749Sis *    documentation and/or other materials provided with the distribution.
18b0f69749Sis *
19b0f69749Sis * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20b0f69749Sis * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21b0f69749Sis * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22b0f69749Sis * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23b0f69749Sis * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24b0f69749Sis * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25b0f69749Sis * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26b0f69749Sis * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27b0f69749Sis * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28b0f69749Sis * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29b0f69749Sis * POSSIBILITY OF SUCH DAMAGE.
30b0f69749Sis */
31b0f69749Sis
32b0f69749Sis#include <machine/asm.h>
33b0f69749Sis
34b0f69749SisENTRY(m68k_sync_icache)
351a5643ffSthorpej	movl	%sp@(8),%d1
361a5643ffSthorpej	movl	%sp@(4),%a1
3783890621Sitohy	movl	#0x80000004,%d0
38b0f69749Sis	trap	#12
39b0f69749Sis	rts
40