[rtems commit] bsps/arm: Copy vector table only if necessary
Sebastian Huber
sebh at rtems.org
Fri May 3 15:29:26 UTC 2013
Module: rtems
Branch: master
Commit: 9ce658030a0d772ee135d8158531e69b2696ab97
Changeset: http://git.rtems.org/rtems/commit/?id=9ce658030a0d772ee135d8158531e69b2696ab97
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu May 2 13:37:30 2013 +0200
bsps/arm: Copy vector table only if necessary
---
c/src/lib/libbsp/arm/shared/start/start.S | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/c/src/lib/libbsp/arm/shared/start/start.S b/c/src/lib/libbsp/arm/shared/start/start.S
index 9954a87..cb91d41 100644
--- a/c/src/lib/libbsp/arm/shared/start/start.S
+++ b/c/src/lib/libbsp/arm/shared/start/start.S
@@ -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 */
More information about the vc
mailing list