OpenCores
URL https://opencores.org/ocsvn/aor3000/aor3000/trunk

Subversion Repositories aor3000

[/] [aor3000/] [trunk/] [linux/] [arch/] [mips/] [aor3000/] [wbflush.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 alfik
/* The code in this file is taken from the arch/mips/dec/wbflush.c.
2
 *
3
 * This file is subject to the terms and conditions of the GNU General Public
4
 * License.  See the file "COPYING" in the main directory of this archive
5
 * for more details.
6
 *
7
 * Copyright (C) 1998 Harald Koerfgen
8
 * Copyright (C) 2002 Maciej W. Rozycki
9
 * Copyright (C) 2014 Aleksander Osman
10
 */
11
 
12
#include <linux/init.h>
13
 
14
#include <asm/wbflush.h>
15
 
16
static void wbflush_r3000(void);
17
 
18
void (*__wbflush) (void);
19
 
20
void __init wbflush_setup(void)
21
{
22
        __wbflush = wbflush_r3000;
23
}
24
 
25
/*
26
 * For the aoR3000 the writeback buffer functions as part of Coprocessor 0.
27
 */
28
static void wbflush_r3000(void)
29
{
30
    asm(".set\tpush\n\t"
31
        ".set\tnoreorder\n\t"
32
        "1:\tbc0f\t1b\n\t"
33
        "nop\n\t"
34
        ".set\tpop");
35
}
36
 
37
#include <linux/module.h>
38
 
39
EXPORT_SYMBOL(__wbflush);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.