</tool>\r
<tool id="cdt.managedbuild.tool.gnu.cross.c.linker.451869963" name="Cross GCC Linker" superClass="cdt.managedbuild.tool.gnu.cross.c.linker">\r
<option id="gnu.c.link.option.other.1746198439" name="Other options (-Xlinker [option])" superClass="gnu.c.link.option.other" valueType="stringList">\r
- <listOptionValue builtIn="false" value="-TcycloneV-dk-oc-ram.ld"/>\r
+ <listOptionValue builtIn="false" value="-TcycloneV-dk-ram.ld"/>\r
<listOptionValue builtIn="false" value="--defsym=__cs3_isr_irq=FreeRTOS_IRQ_Handler"/>\r
<listOptionValue builtIn="false" value="--defsym=__cs3_isr_swi=FreeRTOS_SWI_Handler"/>\r
<listOptionValue builtIn="false" value="-Map=RTOSDemo.map"/>\r
\r
static void prvSetupHardware( void )\r
{\r
+extern uint8_t __cs3_interrupt_vector;\r
+uint32_t ulSCTLR, ulVectorTable = ( uint32_t ) &__cs3_interrupt_vector;\r
+const uint32_t ulVBit = 13U;\r
+\r
alt_int_global_init();\r
+\r
+ /* Clear SCTLR.V for low vectors and map the vector table to the beginning\r
+ of the code. */\r
+ __asm( "MRC p15, 0, %0, c1, c0, 0" : "=r" ( ulSCTLR ) );\r
+ ulSCTLR &= ~( 1 << ulVBit );\r
+ __asm( "MCR p15, 0, %0, c1, c0, 0" : : "r" ( ulSCTLR ) );\r
+ __asm( "MCR p15, 0, %0, c12, c0, 0" : : "r" ( ulVectorTable ) );\r
+\r
cache_init();\r
- //_RB_mmu_init();\r
+ mmu_init();\r
}\r
/*-----------------------------------------------------------*/\r
\r