diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-04-02 15:11:21 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-04-06 13:46:32 +0200 |
commit | f33330c0ff90adad8855250877a4a3d0a407bba4 (patch) | |
tree | 6b5ad86aeb2e6b0a57f78965e59c618b4a26f30f /firmware/target/arm/tcc77x/crt0.S | |
parent | bb0e4cc543e4c7bed6dff3a41d092b6867632535 (diff) | |
download | rockbox-f33330c0ff90adad8855250877a4a3d0a407bba4.tar.gz rockbox-f33330c0ff90adad8855250877a4a3d0a407bba4.zip |
arm: factor all exception handlers out of the crt0.S files
Remove the implementations of all exceptions handlers from the
various crt0.S files and have a single implementation in system-arm.h
The new implementation is weak so that it can be overwritten by some
specific code (like the unwinder)
Change-Id: Ib3e041ed6037376bbe0e79286057e1051640dd90
Reviewed-on: http://gerrit.rockbox.org/205
Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
Diffstat (limited to 'firmware/target/arm/tcc77x/crt0.S')
-rw-r--r-- | firmware/target/arm/tcc77x/crt0.S | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/firmware/target/arm/tcc77x/crt0.S b/firmware/target/arm/tcc77x/crt0.S index d0873102d4..aebd8974da 100644 --- a/firmware/target/arm/tcc77x/crt0.S +++ b/firmware/target/arm/tcc77x/crt0.S | |||
@@ -212,35 +212,6 @@ vectors_end: | |||
212 | 212 | ||
213 | .text | 213 | .text |
214 | 214 | ||
215 | /* All illegal exceptions call into UIE with exception address as first | ||
216 | parameter. This is calculated differently depending on which exception | ||
217 | we're in. Second parameter is exception number, used for a string lookup | ||
218 | in UIE. | ||
219 | */ | ||
220 | undef_instr_handler: | ||
221 | sub r0, lr, #4 | ||
222 | mov r1, #0 | ||
223 | b UIE | ||
224 | |||
225 | /* We run sys mode most of the time, and should never see a software | ||
226 | exception being thrown. Make it illegal and call UIE. | ||
227 | */ | ||
228 | software_int_handler: | ||
229 | reserved_handler: | ||
230 | sub r0, lr, #4 | ||
231 | mov r1, #4 | ||
232 | b UIE | ||
233 | |||
234 | prefetch_abort_handler: | ||
235 | sub r0, lr, #4 | ||
236 | mov r1, #1 | ||
237 | b UIE | ||
238 | |||
239 | data_abort_handler: | ||
240 | sub r0, lr, #8 | ||
241 | mov r1, #2 | ||
242 | b UIE | ||
243 | |||
244 | irq_handler: | 215 | irq_handler: |
245 | stmfd sp!, {r0-r3, r12, lr} | 216 | stmfd sp!, {r0-r3, r12, lr} |
246 | bl irq | 217 | bl irq |