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_ASM_CPU_EXTERNAL_H 16 #define PRT_ASM_CPU_EXTERNAL_H 17 18 /* 有名空间不支持时,从核不能从有名空间获取 */ 19 #define GLB_NS_ADDR 0 20 #define GLB_NSM_START 0 21 22 #define OS_EXC_REGINFO_OFFSET 160 23 #define OS_EXC_MAGIC_WORD 0xEDCAACDC 24 #define OS_SYS_STACK_MAGIC_WORD 0xCACACACA /* 系统栈魔术字 */ 25 26 /* 内核状态定义 */ 27 #define OS_FLG_HWI_ACTIVE 0x0001 28 #define OS_FLG_BGD_ACTIVE 0x0002 29 #define OS_FLG_TICK_ACTIVE 0x0008 30 #define OS_FLG_SYS_ACTIVE 0x0010 31 #define OS_FLG_EXC_ACTIVE 0x0020 32 #define OS_FLG_TSK_REQ 0x1000 33 #define OS_FLG_TSK_SWHK 0x2000 /* 任务切换时是否调用切换入口函数 */ 34 35 #endif /* PRT_ASM_CPU_EXTERNAL_H */ 36