Changeset ae7d03c in mainline for boot/arch/arm32/src/mm.c


Ignore:
Timestamp:
2018-05-10T13:39:19Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e8975278
Parents:
b277bef
git-author:
Jiri Svoboda <jiri@…> (2018-05-10 07:38:12)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-10 13:39:19)
Message:

Selected ccheck-proposed comment fixes.

File:
1 edited

Legend:

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

    rb277bef rae7d03c  
    103103 *
    104104 * @return      1 if the given section can be mapped as cacheable, 0 otherwise.
    105 */
     105 */
    106106static inline int section_cacheable(pfn_t section)
    107107{
     
    203203         */
    204204        asm volatile (
    205                 /* Behave as a client of domains */
     205            /* Behave as a client of domains */
    206206            "ldr r0, =0x55555555\n"
    207207            "mcr p15, 0, r0, c3, c0, 0\n"
    208208
    209                 /* Current settings */
     209            /* Current settings */
    210210            "mrc p15, 0, r0, c1, c0, 0\n"
    211211
    212                 /* Enable ICache, DCache, BPredictors and MMU,
    213                 * we disable caches before jumping to kernel
    214                 * so this is safe for all archs.
    215                 * Enable VMSAv6 the bit (23) is only writable on ARMv6.
    216                 * (and QEMU)
    217                 */
     212            /* Enable ICache, DCache, BPredictors and MMU,
     213            * we disable caches before jumping to kernel
     214            * so this is safe for all archs.
     215            * Enable VMSAv6 the bit (23) is only writable on ARMv6.
     216            * (and QEMU)
     217            */
    218218#ifdef PROCESSOR_ARCH_armv6
    219219            "ldr r1, =0x00801805\n"
     
    224224            "orr r0, r0, r1\n"
    225225
    226                 /* Invalidate the TLB content before turning on the MMU.
    227                 * ARMv7-A Reference manual, B3.10.3
    228                 */
     226            /* Invalidate the TLB content before turning on the MMU.
     227            * ARMv7-A Reference manual, B3.10.3
     228            */
    229229            "mcr p15, 0, r0, c8, c7, 0\n"
    230230
    231                 /* Store settings, enable the MMU */
     231            /* Store settings, enable the MMU */
    232232            "mcr p15, 0, r0, c1, c0, 0\n"
    233233            ::: "r0", "r1"
Note: See TracChangeset for help on using the changeset viewer.