Changeset ac4f1718 in rtems


Ignore:
Timestamp:
Oct 27, 2015, 9:18:45 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f966d608
Parents:
3abfe7ca
git-author:
Sebastian Huber <sebastian.huber@…> (10/27/15 09:18:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/28/15 12:06:17)
Message:

bsp/qoriq: Invalidate L1 cache on boot processor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/qoriq/start/start.S

    r3abfe7ca rac4f1718  
    6060        bl      bsp_fdt_copy
    6161#endif /* U_BOOT_USE_FDT */
     62
     63        /* Invalidate L1 data cache */
     64        mfspr   r3, FSL_EIS_L1CSR0
     65        ori     r3, r3, FSL_EIS_L1CSR0_CFI
     66        mtspr   FSL_EIS_L1CSR0, r3
     671:
     68        mfspr   r3, FSL_EIS_L1CSR0
     69        andi.   r3, r3, FSL_EIS_L1CSR0_CFI
     70        bne     1b
     71        isync
     72
     73        /* Invalidate L1 instruction cache */
     74        mfspr   r3, FSL_EIS_L1CSR1
     75        ori     r3, r3, FSL_EIS_L1CSR1_ICFI
     76        mtspr   FSL_EIS_L1CSR1, r3
     771:
     78        mfspr   r3, FSL_EIS_L1CSR1
     79        andi.   r3, r3, FSL_EIS_L1CSR1_ICFI
     80        bne     1b
     81        isync
    6282
    6383        /* Get start stack */
Note: See TracChangeset for help on using the changeset viewer.