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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-armnommu/] [proc-trio/] [uncompress.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * linux/include/asm-arm/proc-armv/uncompress.h
3
 *
4
 * (c) 1997 Russell King
5
 */
6
 
7
static inline void proc_decomp_setup (void)
8
{
9
        __asm__ __volatile__("
10
        mrc     p15, 0, r0, c0, c0
11
        eor     r0, r0, #0x44 << 24
12
        eor     r0, r0, #0x01 << 16
13
        eor     r0, r0, #0xA1 << 8
14
        movs    r0, r0, lsr #4
15
        mcreq   p15, 0, r0, c7, c5, 0           @ flush I cache
16
        mrceq   p15, 0, r0, c1, c0
17
        orreq   r0, r0, #1 << 12
18
        mcreq   p15, 0, r0, c1, c0              @ enable I cache
19
        mov     r0, #0
20
        mcreq   p15, 0, r0, c15, c1, 2          @ enable clock switching
21
        " : : : "r0", "cc", "memory");
22
}

powered by: WebSVN 2.1.0

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