1#include "system_config.h" 2 3#define LOS_CB_START(module) __##module##_start 4#define LOS_CB_END(module) __##module##_end 5#define LOS_BLOCK_START(module) __block_##module##_start 6#define LOS_BLOCK_END(module) __block_##module##_end 7#define LOS_GET_SPACE_FOR_SYSTEM(module, X) \ 8 . = ALIGN(8);\ 9 LOS_BLOCK_START(module) = .;\ 10 LOS_CB_START(module) = .;\ 11 KEEP(*(.##module)); \ 12 LOS_CB_END(module) = .;\ 13 . += (LOS_CB_END(module) - LOS_CB_START(module))*((X) - 1);\ 14 LOS_BLOCK_END(module) = . 15 16LOS_GET_SPACE_FOR_SYSTEM(sysmemused,(LOSCFG_BASE_CORE_TSK_LIMIT_CONFIG + 1)); 17LOS_GET_SPACE_FOR_SYSTEM(errno,(LOSCFG_BASE_CORE_TSK_LIMIT_CONFIG + 1)); 18 19