1 /* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/lynxos/lynx_ppc.S,v 1.1 1999/07/10 07:24:49 dawes Exp $ */
3 * Copyright 1998 by Metro Link Incorporated
5 * Permission to use, copy, modify, distribute, and sell this software
6 * and its documentation for any purpose is hereby granted without fee,
7 * provided that the above copyright notice appear in all copies and that
8 * both that copyright notice and this permission notice appear in
9 * supporting documentation, and that the name of Metro Link
10 * Incorporated not be used in advertising or publicity pertaining to
11 * distribution of the software without specific, written prior
12 * permission. Metro Link Incorporated makes no representations
13 * about the suitability of this software for any purpose. It is
14 * provided "as is" without express or implied warranty.
16 * METRO LINK INCORPORATED DISCLAIMS ALL WARRANTIES WITH REGARD
17 * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18 * AND FITNESS, IN NO EVENT SHALL METRO LINK INCORPORATED BE
19 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
20 * DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
22 * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
30 .globl ppc_flush_icache
31 .globl .ppc_flush_icache
32 .csect ppc_flush_icache[DS]
34 .long .ppc_flush_icache, TOC[tc0], 0
43 li 6, 0 /* __inst_dcbf (addr, 0); */
45 li 5, 32 /* __inst_dcbf (addr, LINESIZE); */
47 sync /* __inst_sync (); */
48 li 4,0 /* __inst_icbi (addr, 0); */
50 li 7,32 /* __inst_icbi (addr, LINESIZE); */
52 sync /* __inst_sync (); */
53 isync /* __inst_isync (); */
62 .byte 0,0,32,97,128,1,1,1
64 .long LT..ppc_flush_icache-.ppc_flush_icache
66 .byte "ppc_flush_icache"