Commit d0d10fe
committed
don't call slice::as_ptr
We want to avoid directly accessing the data in the .bootloader-config
section and slice::as_ptr gets a pointer to that data. Instead we cast
a reference to a reference to the data in .bootloader-config to an
address and pass that to the asm! block. The problem with as_ptr was
that it's a method on the slice and not the reference and so by
calling slice::as_ptr, we once again directly accessed the slice when
we only meant to access the reference to the reference to the data.1 parent b785b6d commit d0d10fe
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
0 commit comments