Commit 7bbe9da
tests: lib: shared_multi_heap: fix ARM64 MMU attributes
The qemu_cortex_a53 overlay was using ARM MPU memory attributes
(DT_MEM_ARM(ATTR_MPU_RAM)) even though Cortex-A53 is an ARM64
platform with MMU, not MPU.
Fix by switching the overlay to DT_MEM_ARM64_MMU_NORMAL /
DT_MEM_ARM64_MMU_NORMAL_NC and updating the test source to
handle both ARM MPU and ARM64 MMU attributes via
#if defined(CONFIG_ARM64).
The ARM64 path now checks the generic DT_MEM_CACHEABLE bit
instead of switching on architecture-specific enum values,
consistent with the composable-bitmask design.
Use the generic DT_MEM_ARCH_ATTR_UNKNOWN for the "unknown
attribute" default instead of architecture-specific aliases.
Remove the runtime smh_reg_map() function and its call site
since memory regions are now statically mapped at compile time
via MMU_REGION_DT_COMPAT_FOREACH_FLAT_ENTRY_FROM_DT, making
the dynamic k_mem_map_phys_bare() mapping redundant.
Increase CONFIG_MAX_XLAT_TABLES to 16 for qemu_cortex_a53.
Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com>1 parent 94e4c83 commit 7bbe9da
3 files changed
Lines changed: 22 additions & 52 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 45 | | |
56 | 46 | | |
57 | 47 | | |
| |||
67 | 57 | | |
68 | 58 | | |
69 | 59 | | |
70 | | - | |
| 60 | + | |
71 | 61 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
86 | 68 | | |
87 | 69 | | |
88 | 70 | | |
89 | 71 | | |
90 | 72 | | |
91 | 73 | | |
92 | | - | |
93 | 74 | | |
94 | 75 | | |
95 | 76 | | |
96 | | - | |
97 | 77 | | |
| 78 | + | |
98 | 79 | | |
99 | 80 | | |
100 | 81 | | |
| |||
105 | 86 | | |
106 | 87 | | |
107 | 88 | | |
108 | | - | |
| 89 | + | |
109 | 90 | | |
110 | 91 | | |
111 | 92 | | |
112 | 93 | | |
113 | | - | |
| 94 | + | |
114 | 95 | | |
115 | 96 | | |
116 | 97 | | |
117 | 98 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 99 | | |
131 | 100 | | |
132 | 101 | | |
| |||
0 commit comments