Changeset f288d85 in mainline


Ignore:
Timestamp:
2013-06-05T19:13:26Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dff90fa7
Parents:
7275e520
Message:

arm32, boot: Better comments.

File:
1 edited

Legend:

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

    r7275e520 rf288d85  
    6363{
    6464        const uintptr_t addr = (uintptr_t)address;
    65         /* DCIMVAC - invalidate by address to the point of coherence */
    6665        for (uintptr_t a = addr; a < addr + size; a += 4) {
     66                /* DCIMVAC - invalidate by address to the point of coherence */
    6767                asm volatile ("mcr p15, 0, %[a], c7, c6, 1\n" :: [a]"r"(a) : );
    6868        }
     
    7272{
    7373        const uintptr_t addr = (uintptr_t)address;
    74         /* DCCMVAC - clean by address to the point of coherence */
    7574        for (uintptr_t a = addr; a < addr + size; a += 4) {
     75                /* DCCMVAC - clean by address to the point of coherence */
    7676                asm volatile ("mcr p15, 0, %[a], c7, c10, 1\n" :: [a]"r"(a) : );
    7777        }
     
    8282void bootstrap(void)
    8383{
    84         /* Make sure  we run in memory code when caches are enabled,
     84        /* Make sure we run in memory code when caches are enabled,
    8585         * make sure we read memory data too. This part is ARMv7 specific as
    8686         * ARMv7 no longer invalidates caches on restart.
     
    105105                    components[i].start, components[i].name, components[i].inflated,
    106106                    components[i].size);
     107                /* Make sure there is no cache garbage in read locations */
    107108                invalidate_dcache(components[i].start, components[i].size);
    108109        }
     
    148149                        halt();
    149150                }
     151                /* Make sure data are in the memory, ICache will need them */
    150152                clean_dcache_poc(dest[i - 1], components[i - 1].inflated);
    151153        }
Note: See TracChangeset for help on using the changeset viewer.