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: hw模块内部头文件。 14 */ 15 #ifndef PRT_EXC_INTERNAL_H 16 #define PRT_EXC_INTERNAL_H 17 18 #include "prt_exc_external.h" 19 20 /* 21 * 模块内宏定义 22 */ 23 #define OS_EXC_MAX_NEST_DEPTH 5 24 #define OS_EXC_FLAG_FAULTADDR_VALID 0x01U /* 异常类型:faultAddr域是否有效 标志位 */ 25 #define OS_EXC_IMPRECISE_ACCESS_ADDR 0xABABABABUL 26 27 #define INVALIDPID 0xFFFFFFFFUL 28 #define INVALIDSTACKBOTTOM 0xFFFFFFFFUL 29 30 extern void OsExcSaveInfo(struct ExcRegInfo *regs); 31 extern void OsExcHandleEntryM4(U32 excType, U32 faultAddr, struct ExcContext *excBufAddr); 32 33 #endif /* PRT_EXC_INTERNAL_H */ 34