bsps/arm: Copy vector table only if necessary

This commit is contained in:
Sebastian Huber
2013-05-02 13:37:30 +02:00
parent 27690ec38e
commit 9ce658030a

View File

@@ -186,11 +186,15 @@ bsp_start_hook_0_done:
ldr r0, =bsp_vector_table_begin
adr r1, bsp_start_vector_table_begin
cmp r0, r1
beq bsp_vector_table_copy_done
ldmia r1!, {r2-r9}
stmia r0!, {r2-r9}
ldmia r1!, {r2-r9}
stmia r0!, {r2-r9}
bsp_vector_table_copy_done:
SWITCH_FROM_ARM_TO_THUMB r0
/* Branch to start hook 1 */