[PATCH] score/or1k/cpu.c: discard linker-symbols.h include and extern the related variable

Hesham ALMatary heshamelmatary at gmail.com
Tue Feb 10 20:04:19 UTC 2015


---
 cpukit/score/cpu/or1k/cpu.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/or1k/cpu.c b/cpukit/score/cpu/or1k/cpu.c
index 9d1ae49..69845ff 100644
--- a/cpukit/score/cpu/or1k/cpu.c
+++ b/cpukit/score/cpu/or1k/cpu.c
@@ -14,9 +14,14 @@
 #include <rtems/system.h>
 #include <rtems/score/isr.h>
 #include <rtems/score/wkspace.h>
-#include <bsp/linker-symbols.h>
 #include <rtems/score/cpu.h>
 
+/* bsp_start_vector_table_begin is the start address of the vector table
+ * containing addresses to ISR Handlers. It's defined at the BSP linkcmds
+ * and may differ from one BSP to another. 
+ */
+extern char bsp_start_vector_table_begin[];
+
 /**
  * @brief Performs processor dependent initialization.
  */
-- 
2.1.0



More information about the devel mailing list