Commit 4072557
committed
refactor(policy): centralize shared execution policy state
Move shared execution-policy knobs out of scattered globals into a
dedicated acs_execution_policy_t with explicit reset and accessor APIs.
This keeps execution policy separate from run-request selection state,
routes defaults and overrides through one place, and removes direct
global and header coupling across VAL, PAL, baremetal, and UEFI paths.
- add acs_execution_policy.[ch] as the canonical shared policy object
for print, PCIe, timeout, crypto, SLC, and EL1 trap settings
- replace direct policy g_* globals across VAL, PAL, test pool,
baremetal, and UEFI code with policy fields or acs_policy_get_*()
accessors
- update baremetal and UEFI entry paths to reset, populate, and consume
execution policy explicitly
- split generic policy reset defaults from baremetal target overrides,
and expose target defaults through
acs_get_platform_execution_policy_defaults()
- update compile-time and EL3 override helpers to write execution
policy separately from run-request filtering state
- remove duplicated policy declarations from PAL and UEFI headers and
keep the shared policy API in one canonical header
- wire acs_execution_policy.c into the relevant VAL build files for
baremetal and UEFI flows
- keep headers self-contained with shared fixed-width types and drop
local scalar typedef wrappers that no longer add value
- retain documentation for sys_last_lvl_cache values and
el1skiptrap_mask usage in the canonical policy definition
Change-Id: I1e320c46aaab9a6479b189d433a0a3d8f7a622581 parent d8fcbbb commit 4072557
96 files changed
Lines changed: 833 additions & 552 deletions
File tree
- apps
- baremetal
- linux
- bsa-acs-app
- include
- pcbsa-acs-app
- include
- sbsa-acs-app
- include
- uefi
- pal
- baremetal
- base
- include
- src
- target
- RDN2
- include
- src
- RDV3CFG1
- include
- src
- RDV3
- include
- src
- include
- uefi_acpi
- include
- src
- uefi_dt
- include
- src
- test_pool
- gic
- memory_map
- mpam
- pcie
- peripherals
- pe
- power_wakeup
- timer
- watchdog
- val
- driver/smmu_v3
- include
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 101 | | |
105 | | - | |
106 | | - | |
| 102 | + | |
107 | 103 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | 104 | | |
113 | 105 | | |
114 | 106 | | |
| |||
117 | 109 | | |
118 | 110 | | |
119 | 111 | | |
120 | | - | |
121 | 112 | | |
122 | 113 | | |
123 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
65 | 117 | | |
66 | 118 | | |
67 | 119 | | |
| |||
104 | 156 | | |
105 | 157 | | |
106 | 158 | | |
107 | | - | |
| 159 | + | |
108 | 160 | | |
109 | 161 | | |
110 | 162 | | |
111 | | - | |
| 163 | + | |
112 | 164 | | |
113 | 165 | | |
114 | 166 | | |
| |||
168 | 220 | | |
169 | 221 | | |
170 | 222 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
176 | 228 | | |
177 | | - | |
178 | | - | |
| 229 | + | |
| 230 | + | |
179 | 231 | | |
180 | 232 | | |
181 | 233 | | |
| |||
186 | 238 | | |
187 | 239 | | |
188 | 240 | | |
189 | | - | |
| 241 | + | |
190 | 242 | | |
191 | 243 | | |
192 | 244 | | |
193 | 245 | | |
194 | 246 | | |
195 | 247 | | |
196 | 248 | | |
197 | | - | |
198 | | - | |
199 | | - | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
200 | 253 | | |
201 | 254 | | |
202 | 255 | | |
| |||
205 | 258 | | |
206 | 259 | | |
207 | 260 | | |
208 | | - | |
| 261 | + | |
209 | 262 | | |
210 | | - | |
| 263 | + | |
211 | 264 | | |
212 | 265 | | |
213 | 266 | | |
| |||
220 | 273 | | |
221 | 274 | | |
222 | 275 | | |
223 | | - | |
| 276 | + | |
224 | 277 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
229 | 282 | | |
230 | 283 | | |
231 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
33 | 29 | | |
34 | 30 | | |
35 | 31 | | |
36 | | - | |
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | | - | |
| 79 | + | |
79 | 80 | | |
80 | | - | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | | - | |
91 | | - | |
| 91 | + | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
95 | | - | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | | - | |
101 | | - | |
| 101 | + | |
| 102 | + | |
102 | 103 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | | - | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| 130 | + | |
129 | 131 | | |
130 | 132 | | |
131 | 133 | | |
| 134 | + | |
132 | 135 | | |
133 | | - | |
| 136 | + | |
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
139 | 142 | | |
140 | | - | |
| 143 | + | |
141 | 144 | | |
142 | | - | |
| 145 | + | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
| |||
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | | - | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | | - | |
| 89 | + | |
89 | 90 | | |
90 | | - | |
91 | | - | |
| 91 | + | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | | - | |
102 | | - | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
106 | | - | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
112 | | - | |
| 112 | + | |
| 113 | + | |
113 | 114 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
117 | 118 | | |
118 | | - | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
141 | 144 | | |
142 | | - | |
| 145 | + | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
149 | | - | |
| 152 | + | |
150 | 153 | | |
151 | | - | |
| 154 | + | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| |||
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
179 | | - | |
| 182 | + | |
180 | 183 | | |
181 | 184 | | |
182 | 185 | | |
| |||
0 commit comments