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: exc模块内部头文件 14 */ 15 #ifndef PRT_KEXC_EXTERNAL_H 16 #define PRT_KEXC_EXTERNAL_H 17 18 #include "prt_exc.h" 19 20 /* 21 * 模块内宏定义 22 */ 23 #define EXC_RECORD_SIZE (sizeof(struct ExcInfo)) 24 #define OS_EXC_INFO_ADDR (&EXC_INFO_INTERNAL.excInfo) 25 26 /* 27 * 模块内数据结构定义 28 */ 29 struct TagExcInfoInternal { 30 /* 异常信息 */ 31 struct ExcInfo excInfo; 32 }; 33 34 /* 35 * 模块内全局变量声明 36 */ 37 extern struct ExcModInfo g_excModInfo; 38 39 extern U32 g_curNestCount; 40 #define CUR_NEST_COUNT g_curNestCount 41 42 extern struct TagExcInfoInternal g_excInfoInternal; 43 #define EXC_INFO_INTERNAL g_excInfoInternal 44 45 #endif /* PRT_KEXC_EXTERNAL_H */ 46