source: rtems/bsps/riscv/include/bsp/linker-symbols.h @ 8db3f0e

Last change on this file since 8db3f0e was 8db3f0e, checked in by Sebastian Huber <sebastian.huber@…>, on Jul 19, 2018 at 10:11:19 AM

riscv: Rework exception handling

Remove _CPU_ISR_install_raw_handler() and _CPU_ISR_install_vector()
functions. Applications can install an exception handler via the fatal
error handler to handle synchronous exceptions.

Handle interrupt exceptions via _RISCV_Interrupt_dispatch() which must
be provided by the BSP.

Update #3433.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1#ifndef LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H
2#define LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif /* __cplusplus */
7
8/**
9 * @defgroup riscv_linker Linker Support
10 *
11 * @ingroup riscv_shared
12 *
13 * @brief Linker support.
14 *
15 * @{
16 */
17
18#ifndef ASM
19#define LINKER_SYMBOL(sym) extern char sym [];
20#else
21#define LINKER_SYMBOL(sym) .extern sym
22#endif
23
24LINKER_SYMBOL(bsp_section_start_begin)
25LINKER_SYMBOL(bsp_section_start_end)
26LINKER_SYMBOL(bsp_section_start_size)
27
28LINKER_SYMBOL(bsp_section_vector_begin)
29LINKER_SYMBOL(bsp_section_vector_end)
30LINKER_SYMBOL(bsp_section_vector_size)
31
32LINKER_SYMBOL(bsp_section_text_begin)
33LINKER_SYMBOL(bsp_section_text_end)
34LINKER_SYMBOL(bsp_section_text_size)
35LINKER_SYMBOL(bsp_section_text_load_begin)
36LINKER_SYMBOL(bsp_section_text_load_end)
37
38LINKER_SYMBOL(bsp_section_rodata_begin)
39LINKER_SYMBOL(bsp_section_rodata_end)
40LINKER_SYMBOL(bsp_section_rodata_size)
41LINKER_SYMBOL(bsp_section_rodata_load_begin)
42LINKER_SYMBOL(bsp_section_rodata_load_end)
43
44LINKER_SYMBOL(bsp_section_data_begin)
45LINKER_SYMBOL(bsp_section_data_end)
46LINKER_SYMBOL(bsp_section_data_size)
47LINKER_SYMBOL(bsp_section_data_load_begin)
48LINKER_SYMBOL(bsp_section_data_load_end)
49
50LINKER_SYMBOL(bsp_section_bss_begin)
51LINKER_SYMBOL(bsp_section_bss_end)
52LINKER_SYMBOL(bsp_section_bss_size)
53
54LINKER_SYMBOL(bsp_section_work_begin)
55LINKER_SYMBOL(bsp_section_work_end)
56LINKER_SYMBOL(bsp_section_work_size)
57
58LINKER_SYMBOL(bsp_section_stack_begin)
59LINKER_SYMBOL(bsp_section_stack_end)
60LINKER_SYMBOL(bsp_section_stack_size)
61
62LINKER_SYMBOL(bsp_vector_table_begin)
63LINKER_SYMBOL(bsp_vector_table_end)
64LINKER_SYMBOL(bsp_vector_table_size)
65
66LINKER_SYMBOL(bsp_translation_table_base)
67LINKER_SYMBOL(bsp_translation_table_end)
68
69/** @} */
70
71#ifdef __cplusplus
72}
73#endif /* __cplusplus */
74
75#endif /* LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H */
Note: See TracBrowser for help on using the repository browser.