Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:00

0001 #ifndef LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H
0002 #define LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H
0003 
0004 /**
0005  * @file
0006  *
0007  * @ingroup RTEMSBSPsLinkerSymbolsRISCV
0008  *
0009  * @brief This header file provides interfaces to RISC-V specific linker
0010  *   symbols and sections.
0011  */
0012 
0013 #ifdef __cplusplus
0014 extern "C" {
0015 #endif /* __cplusplus */
0016 
0017 /**
0018  * @defgroup RTEMSBSPsLinkerSymbolsRISCV RISC-V Linker Symbols
0019  *
0020  * @ingroup RTEMSBSPsLinkerSymbols
0021  *
0022  * @brief This group provides support for RISC-V specific linker symbols and
0023  *   sections.
0024  *
0025  * @{
0026  */
0027 
0028 #ifndef ASM
0029 #define LINKER_SYMBOL(sym) extern char sym [];
0030 #else
0031 #define LINKER_SYMBOL(sym) .extern sym
0032 #endif
0033 
0034 /** @} */
0035 
0036 #ifdef __cplusplus
0037 }
0038 #endif /* __cplusplus */
0039 
0040 #endif /* LIBBSP_RISCV_SHARED_LINKER_SYMBOLS_H */