Date:2011-03-18 12:35:25 (12 years 8 months ago)
Author:Lars C.
Commit:0183861a81270fc0cbef39ce2f38f375f8f3a29b
Message:JZ47XX: Fix JZ4760 access to vmalloc'ed memory

Without this magic value written to that magic register access to vmalloc'ed
memory hardlocks the CPU.
Files: arch/mips/jz47xx/setup.c (1 diff)

Change Details

arch/mips/jz47xx/setup.c
2222
2323void __init plat_mem_setup(void)
2424{
25    if (soc_is_jz4760()) {
26        /* Found in the original Ingenic Linux SDK, without it accessing
27         * vmalloc'ed memory hardlocks the CPU */
28        __asm__ (
29            "li $2, 0xa9000000 \n\t"
30            "mtc0 $2, $5, 4 \n\t"
31            "nop \n\t"
32            ::"r"(2));
33    }
34
2535    jz4740_reset_init();
2636}
2737

Archive Download the corresponding diff file



interactive