Ignore:
Timestamp:
2018-05-22T10:36:58Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a4eb3ba2
Parents:
4f8772d4
git-author:
Jiri Svoboda <jiri@…> (2018-05-21 17:36:30)
git-committer:
Jiri Svoboda <jiri@…> (2018-05-22 10:36:58)
Message:

Fix remaining ccheck issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/arch/cp15.h

    r4f8772d4 r904b1bc  
    4040
    4141/** See ARM Architecture reference manual ch. B3.17.1 page B3-1456
    42  * for the list */
     42 * for the list
     43 */
    4344
    4445#define CONTROL_REG_GEN_READ(name, crn, opc1, crm, opc2) \
     
    183184        CCSIDR_LINESIZE_MASK = 0x7,
    184185        CCSIDR_LINESIZE_SHIFT = 0,
     186};
     187
    185188#define CCSIDR_SETS(val) \
    186189        (((val >> CCSIDR_NUMSETS_SHIFT) & CCSIDR_NUMSETS_MASK) + 1)
     
    190193#define CCSIDR_LINESIZE_LOG(val) \
    191194        (((val >> CCSIDR_LINESIZE_SHIFT) & CCSIDR_LINESIZE_MASK) + 2 + 2)
    192 };
     195
    193196CONTROL_REG_GEN_READ(CCSIDR, c0, 1, c0, 0);
    194197
     
    206209        CLIDR_UNI_CACHE = 0x4,
    207210        CLIDR_CACHE_MASK = 0x7,
     211};
     212
    208213/** levels counted from 0 */
    209214#define CLIDR_CACHE(level, val)   ((val >> (level * 3)) & CLIDR_CACHE_MASK)
    210 };
     215
    211216CONTROL_REG_GEN_READ(CLIDR, c0, 1, c0, 1);
    212217CONTROL_REG_GEN_READ(AIDR, c0, 1, c0, 7); /* Implementation defined or MIDR */
     
    225230
    226231/* System control registers */
    227 /* COntrol register bit values see ch. B4.1.130 of ARM Architecture Reference
    228  * Manual ARMv7-A and ARMv7-R edition, page 1687 */
     232/*
     233 * Control register bit values see ch. B4.1.130 of ARM Architecture Reference
     234 * Manual ARMv7-A and ARMv7-R edition, page 1687
     235 */
    229236enum {
    230237        SCTLR_MMU_EN_FLAG            = 1 << 0,
Note: See TracChangeset for help on using the changeset viewer.