Commit b399940
committed
AArch32 crt0: don't write to VBAR on Armv7-R systems.
This CP15 register, which controls the exception vector table base
address, is part of the Security Extensions, which are not available
in Armv7-R. So the MCR instruction which writes to them will provoke
an UNDEF exception on an Armv7-R CPU.
This MCR instruction was already conditionally compiled: if you're
compiling crt0.c for a platform without it, you just have to make sure
your ld script puts the exception vectors in the default place. This
patch tightens the existing condition to exclude Armv7-R.1 parent 14d74dd commit b399940
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
0 commit comments