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-10-05 13 * Description: 异常模块的内部头文件 14 */ 15 #ifndef PRT_EXC_EXTERNAL_H 16 #define PRT_EXC_EXTERNAL_H 17 18 #include "prt_task.h" 19 #include "prt_sys.h" 20 #include "prt_kexc_external.h" 21 22 /* 异常类型定义 */ 23 /* 内核进程下异常 */ 24 #define EXC_IN_HWI 0 25 #define EXC_IN_TICK 1 26 #define EXC_IN_TASK 3 27 #define EXC_IN_SYS_BOOT 4 28 #define EXC_IN_SYS 5 29 30 /* 31 * 模块间typedef声明 32 */ 33 typedef void (*ExcTaskInfoFunc)(TskHandle *threadId, struct TskInfo *taskInfo); 34 35 /* 36 * 模块间全局变量声明 37 */ 38 // 异常时获取当前任务的信息 39 extern ExcTaskInfoFunc g_excTaskInfoGet; 40 extern void OsExcDispatch(U32 arg); 41 42 #endif /* PRT_EXC_EXTERNAL_H */ 43