RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Macros | Functions
mmu-vmsav8-64.h File Reference

Definitions used in MMU setup. More...

#include <rtems.h>

Go to the source code of this file.

Macros

#define MMU_DESC_AF   ( 1 << 10 )
 
#define MMU_DESC_SH_INNER   ( ( 1 << 9 ) | ( 1 << 8 ) )
 
#define MMU_DESC_WRITE_DISABLE   ( 1 << 7 )
 
#define MMU_DESC_TYPE_TABLE   ( 1 << 1 )
 
#define MMU_DESC_TYPE_PAGE   ( 1 << 1 )
 
#define MMU_DESC_VALID   ( 1 << 0 )
 
#define MMU_DESC_MAIR_ATTR(val)   ( ( val & 0x3 ) << 2 )
 
#define MMU_DESC_PAGE_TABLE_MASK   0xFFFFFFFFF000LL
 
#define MMU_PAGE_BITS   12
 
#define MMU_PAGE_SIZE   ( 1 << MMU_PAGE_BITS )
 
#define MMU_BITS_PER_LEVEL   9
 
#define AARCH64_MMU_FLAGS_BASE    ( MMU_DESC_VALID | MMU_DESC_SH_INNER | MMU_DESC_AF )
 
#define AARCH64_MMU_DATA_RO_CACHED    ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 3 ) | MMU_DESC_WRITE_DISABLE )
 
#define AARCH64_MMU_CODE_CACHED   AARCH64_MMU_DATA_RO_CACHED
 
#define AARCH64_MMU_CODE_RW_CACHED   AARCH64_MMU_DATA_RW_CACHED
 
#define AARCH64_MMU_DATA_RO    ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 2 ) | MMU_DESC_WRITE_DISABLE )
 
#define AARCH64_MMU_CODE   AARCH64_MMU_DATA_RO
 
#define AARCH64_MMU_CODE_RW   AARCH64_MMU_DATA_RW
 
#define AARCH64_MMU_DATA_RW_CACHED    ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 3 ) )
 
#define AARCH64_MMU_DATA_RW    ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 2 ) )
 
#define AARCH64_MMU_DEVICE   ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 0 ) )
 

Functions

rtems_status_code aarch64_mmu_map (uintptr_t addr, uint64_t size, uint64_t flags)
 

Detailed Description

Definitions used in MMU setup.