1 /* 2 * Copyright (c) 2009-2022 Huawei Technologies Co., Ltd. All rights reserved. 3 * 4 * UniProton is licensed under Mulan PSL v2. 5 * You can use this software according to the terms and conditions of the Mulan PSL v2. 6 * You may obtain a copy of Mulan PSL v2 at: 7 * http://license.coscl.org.cn/MulanPSL2 8 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, 9 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 10 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 11 * See the Mulan PSL v2 for more details. 12 * Create: 2009-12-22 13 * Description: 属性宏相关内部头文件 14 */ 15 #ifndef OS_ATTR_ARMV7_M_EXTERNAL_H 16 #define OS_ATTR_ARMV7_M_EXTERNAL_H 17 18 /* 定义操作系统的代码数据分段 */ 19 #ifndef OS_SEC_L0_TEXT 20 #define OS_SEC_L0_TEXT 21 #endif 22 23 #ifndef OS_SEC_TEXT 24 #define OS_SEC_TEXT 25 #endif 26 27 #ifndef OS_SEC_L2_TEXT 28 #define OS_SEC_L2_TEXT 29 #endif 30 31 #ifndef OS_SEC_L4_TEXT 32 #define OS_SEC_L4_TEXT 33 #endif 34 35 #ifndef OS_SEC_DATA 36 #define OS_SEC_DATA 37 #endif 38 39 #ifndef OS_SEC_L4_DATA 40 #define OS_SEC_L4_DATA 41 #endif 42 43 #ifndef OS_SEC_BSS 44 #define OS_SEC_BSS 45 #endif 46 47 #ifndef OS_SEC_L4_BSS 48 #define OS_SEC_L4_BSS 49 #endif 50 51 #ifndef VEC_SEC_DATA 52 #define VEC_SEC_DATA __attribute__((section("VECTOR"))) 53 #endif 54 55 #endif /* OS_ATTR_ARMV7_M_EXTERNAL_H */ 56