Commit 13208cb
committed
feat(11): Adapt exception demo for Raspberry Pi 5 memory layout
Adjusts the tutorial's exception-triggering demonstration to ensure it produces the intended translation fault on the Raspberry Pi 5.
The Pi 5 port uses a 128 GiB virtual address space to accommodate the RP1 peripheral map. The original tutorial's faulting address of 8 GiB falls within this space, which would lead to an identity mapping and a bus error instead of the desired translation fault.
This commit changes the faulting addresses to 129 GiB and 130 GiB, placing them outside the defined virtual address space. The exception handler is updated accordingly to catch the new 129 GiB address for the recoverable fault demonstration.1 parent b69fca7 commit 13208cb
File tree
2 files changed
+13
-12
lines changed- 11_exceptions_part1_groundwork/src
- _arch/aarch64
2 files changed
+13
-12
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
199 | | - | |
| 198 | + | |
200 | 199 | | |
201 | | - | |
202 | | - | |
| 200 | + | |
| 201 | + | |
203 | 202 | | |
204 | | - | |
205 | | - | |
| 203 | + | |
| 204 | + | |
206 | 205 | | |
207 | 206 | | |
208 | 207 | | |
| |||
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
214 | | - | |
215 | | - | |
216 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
217 | 216 | | |
218 | 217 | | |
219 | 218 | | |
| |||
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
| 228 | + | |
0 commit comments