Changeset 1dcf5fe in rtems for c/src/lib/libcpu/arm


Ignore:
Timestamp:
May 31, 2013, 7:59:27 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
5b391f85
Parents:
ac2bb464
git-author:
Sebastian Huber <sebastian.huber@…> (05/31/13 07:59:27)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/31/13 13:20:31)
Message:

bsps/arm: Merge ARMv7 MMU section definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/arm/shared/include/arm-cp15.h

    rac2bb464 r1dcf5fe  
    8383#define ARM_MMU_TRANSLATION_TABLE_ENTRY_COUNT 4096U
    8484
     85#define ARM_MMU_DEFAULT_CLIENT_DOMAIN 15U
     86
     87#define ARMV7_MMU_READ_ONLY \
     88  ((ARM_MMU_DEFAULT_CLIENT_DOMAIN << ARM_MMU_SECT_DOMAIN_SHIFT) \
     89    | ARM_MMU_SECT_AP_0 \
     90    | ARM_MMU_SECT_AP_2 \
     91    | ARM_MMU_SECT_DEFAULT)
     92
     93#define ARMV7_MMU_READ_ONLY_CACHED \
     94  (ARMV7_MMU_READ_ONLY | ARM_MMU_SECT_C | ARM_MMU_SECT_B)
     95
     96#define ARMV7_MMU_READ_WRITE \
     97  ((ARM_MMU_DEFAULT_CLIENT_DOMAIN << ARM_MMU_SECT_DOMAIN_SHIFT) \
     98    | ARM_MMU_SECT_AP_0 \
     99    | ARM_MMU_SECT_DEFAULT)
     100
     101#define ARMV7_MMU_READ_WRITE_CACHED \
     102  (ARMV7_MMU_READ_WRITE | ARM_MMU_SECT_C | ARM_MMU_SECT_B)
     103
     104#define ARMV7_MMU_DATA_READ_ONLY \
     105  ARMV7_MMU_READ_ONLY
     106
     107#define ARMV7_MMU_DATA_READ_ONLY_CACHED \
     108  ARMV7_MMU_READ_ONLY_CACHED
     109
     110#define ARMV7_MMU_DATA_READ_WRITE \
     111  ARMV7_MMU_READ_WRITE
     112
     113#define ARMV7_MMU_DATA_READ_WRITE_CACHED \
     114  ARMV7_MMU_READ_WRITE_CACHED
     115
     116#define ARMV7_MMU_DATA_READ_WRITE_SHAREABLE \
     117  (ARMV7_MMU_READ_WRITE_CACHED | ARM_MMU_SECT_S)
     118
     119#define ARMV7_MMU_CODE \
     120  ARMV7_MMU_READ_ONLY
     121
     122#define ARMV7_MMU_CODE_CACHED \
     123  ARMV7_MMU_READ_ONLY_CACHED
     124
     125#define ARMV7_MMU_DEVICE \
     126  (ARMV7_MMU_READ_WRITE | ARM_MMU_SECT_B)
     127
    85128/** @} */
    86129
Note: See TracChangeset for help on using the changeset viewer.