File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 131
131
#define NUM_BASE_LEVEL_ENTRIES GET_NUM_BASE_LEVEL_ENTRIES( \
132
132
CONFIG_ARM64_VA_BITS)
133
133
134
+ #ifdef CONFIG_BUILD_KERNEL
135
+ #define BASE_XLAT_TABLE_SIZE XLAT_TABLE_ENTRIES
136
+ #define BASE_XLAT_TABLE_ALIGN PAGE_SIZE
137
+ #else
138
+ #define BASE_XLAT_TABLE_SIZE NUM_BASE_LEVEL_ENTRIES
139
+ #define BASE_XLAT_TABLE_ALIGN NUM_BASE_LEVEL_ENTRIES * sizeof(uint64_t)
140
+ #endif
141
+
134
142
#if (CONFIG_ARM64_PA_BITS == 48 )
135
143
#define TCR_PS_BITS TCR_PS_BITS_256TB
136
144
#elif (CONFIG_ARM64_PA_BITS == 44 )
149
157
* Private Data
150
158
****************************************************************************/
151
159
152
- static uint64_t base_xlat_table [NUM_BASE_LEVEL_ENTRIES ] aligned_data (
153
- NUM_BASE_LEVEL_ENTRIES * sizeof ( uint64_t ) );
160
+ static uint64_t base_xlat_table [BASE_XLAT_TABLE_SIZE ]
161
+ aligned_data ( BASE_XLAT_TABLE_ALIGN );
154
162
155
163
static uint64_t xlat_tables [CONFIG_MAX_XLAT_TABLES ][XLAT_TABLE_ENTRIES ]
156
164
aligned_data (XLAT_TABLE_ENTRIES * sizeof (uint64_t ));
You can’t perform that action at this time.
0 commit comments