Commit cbc4c9d
committed
tool: simplify pv_offset use
inittask_p_v_offset doesn't actually need to be calculated.
For ui_p_reg_end we know the size of the init task so can just use that
instead.
This change was motivated by inittask_p_v_offset causing exceptions
in debug builds of the tool (which are not released in the SDK) since it
is unsigned overflow and Rust does not panic for integer overflow in
release mode by default.
Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>1 parent 2130325 commit cbc4c9d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
204 | 203 | | |
205 | 204 | | |
206 | 205 | | |
| |||
259 | 258 | | |
260 | 259 | | |
261 | 260 | | |
| 261 | + | |
| 262 | + | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
265 | | - | |
| 266 | + | |
| 267 | + | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
| |||
0 commit comments