Changeset 24bead17 in mainline for boot/arch/arm32/src/asm.S


Ignore:
Timestamp:
2013-01-24T22:04:29Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
005b765, 7275e520
Parents:
0e63d34
Message:

arm32, boot: Remove unnecessary gta02 cache flush.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/asm.S

    r0e63d34 r24bead17  
    9797        nop
    9898#endif
    99        
    100 #TODO:This should not be necessary
    101 
    102 #if defined(MACHINE_gta02)
    103 
    104 #define CP15_C7_SEG_SHIFT       5
    105 #define CP15_C7_SEG_SIZE        3
    106 #define CP15_C7_IDX_SHIFT       26
    107 
    108         # Now clean D-cache to guarantee coherency between I-cache and D-cache.
    109 
    110         # D-cache clean and invalidate procedure.
    111         # See ARM920T TRM pages 2-17, 4-17.
    112 
    113         # Initialize segment
    114         mov     r4, #0
    115         # Initialize index
    116 1:      mov     r5, #0
    117 2:      orr     r6, r4, r5
    118         # Clean and invalidate a single line
    119         mcr     p15, 0, r6, c7, c10, 2
    120         # Increment index
    121         add     r5, r5, #(1 << CP15_C7_IDX_SHIFT)
    122         cmp     r5, #0
    123         bne     2b
    124         # Increment segment
    125         add     r4, #(1 << CP15_C7_SEG_SHIFT)
    126         tst     r4, #(1 << (CP15_C7_SEG_SHIFT + CP15_C7_SEG_SIZE))
    127         beq     1b
    128 #endif
    129 
    13099        mov pc, r0
Note: See TracChangeset for help on using the changeset viewer.