37#ifndef LIBCPU_AARCH64_MMU_VMSAV8_64_H
38#define LIBCPU_AARCH64_MMU_VMSAV8_64_H
49#define MMU_DESC_AF ( 1 << 10 )
50#define MMU_DESC_SH_INNER ( ( 1 << 9 ) | ( 1 << 8 ) )
51#define MMU_DESC_WRITE_DISABLE ( 1 << 7 )
53#define MMU_DESC_TYPE_TABLE ( 1 << 1 )
54#define MMU_DESC_TYPE_PAGE ( 1 << 1 )
55#define MMU_DESC_VALID ( 1 << 0 )
56#define MMU_DESC_MAIR_ATTR( val ) ( ( val & 0x3 ) << 2 )
57#define MMU_DESC_PAGE_TABLE_MASK 0xFFFFFFFFF000LL
60#define MMU_PAGE_BITS 12
61#define MMU_PAGE_SIZE ( 1 << MMU_PAGE_BITS )
62#define MMU_BITS_PER_LEVEL 9
64#define AARCH64_MMU_FLAGS_BASE \
65 ( MMU_DESC_VALID | MMU_DESC_SH_INNER | MMU_DESC_AF )
67#define AARCH64_MMU_DATA_RO_CACHED \
68 ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 3 ) | MMU_DESC_WRITE_DISABLE )
69#define AARCH64_MMU_CODE_CACHED AARCH64_MMU_DATA_RO_CACHED
70#define AARCH64_MMU_CODE_RW_CACHED AARCH64_MMU_DATA_RW_CACHED
72#define AARCH64_MMU_DATA_RO \
73 ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 2 ) | MMU_DESC_WRITE_DISABLE )
74#define AARCH64_MMU_CODE AARCH64_MMU_DATA_RO
75#define AARCH64_MMU_CODE_RW AARCH64_MMU_DATA_RW
78#define AARCH64_MMU_DATA_RW_CACHED \
79 ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 3 ) )
80#define AARCH64_MMU_DATA_RW \
81 ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 2 ) )
82#define AARCH64_MMU_DEVICE ( AARCH64_MMU_FLAGS_BASE | MMU_DESC_MAIR_ATTR( 0 ) )
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
This header file defines the RTEMS Classic API.