]>
wirehaze git hosting - stm32f411ceu6.git/blob - sys/core/exceptions.c
77e67d7fd2748e5984ad90ca2a3aba6f46d9ce7d
6 /* Initialize just enough to be able to handle a fault. */
7 __attribute__ ((noinline
, used
)) static void
10 unsigned int *src
, *dst
;
12 /* Relocate .data section to SRAM */
13 src
= &_data_lma_start
;
14 dst
= &_data_vma_start
;
16 while (dst
< &_data_vma_end
)
20 dst
= &_bss_vma_start
;
22 while (dst
< &_bss_vma_end
)
31 __attribute__ ((naked
, noreturn
)) static void
37 /* This function is the core logic for reset_handler (). We just need it so
38 * that when we jump to kentry the stack is empty. */
44 /* Jump to kernel entry code. When reset_handler () is called we are already
45 * running on Thread mode (Privileged), so we can just jump directly. */
49 __attribute__ ((section (".vector_table"), used
))
50 static unsigned long const vector_table
[] = {
51 (unsigned long) &_sram_end
,
52 (unsigned long) reset_handler
,