Changeset 949869d in mainline


Ignore:
Timestamp:
2012-12-29T23:23:01Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5d9e36b
Parents:
2826998
Message:

armv7: Enable flow predictions.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/arm32/src/mm.c

    r2826998 r949869d  
    120120               
    121121#ifdef PROCESSOR_armv7_a
    122                 /* Mask to enable paging, I-cache D-cache
     122                /* Mask to enable paging, I-cache D-cache and branch predict
    123123                 * See kernel/arch/arm32/include/regutils.h for bit values.*/
    124                 "ldr r1, =0x00001005\n"
     124                "ldr r1, =0x00001805\n"
    125125#else
    126126                /* Mask to enable paging */
  • kernel/arch/arm32/src/cpu/cpu.c

    r2826998 r949869d  
    129129        control_reg |= CP15_R1_CACHE_EN | CP15_R1_INST_CACHE_EN;
    130130       
     131        /* Enable branch prediction */
     132        control_reg |= CP15_R1_BRANCH_PREDICT_EN;
    131133        asm volatile (
    132134                "mcr p15, 0, %[control_reg], c1, c0"
Note: See TracChangeset for help on using the changeset viewer.