/* * Copyright (c) 2009-2022 Huawei Technologies Co., Ltd. All rights reserved. * * UniProton is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. * Create: 2009-12-22 * Description: cpu模块外部头文件。 */ #ifndef ARMV7_M_TASK_H #define ARMV7_M_TASK_H #include "prt_typedef.h" #ifdef __cplusplus #if __cplusplus extern "C" { #endif /* __cpluscplus */ #endif /* __cpluscplus */ /* * 任务上下文的结构体定义。 */ struct TskContext { U32 r4; U32 r5; U32 r6; U32 r7; U32 r8; U32 r9; U32 r10; U32 r11; U32 basePri; U32 excReturn; /* * 在有保存FPU寄存器, * 需要用这个顺序来看内存 */ U32 s16; U32 s17; U32 s18; U32 s19; U32 s20; U32 s21; U32 s22; U32 s23; U32 s24; U32 s25; U32 s26; U32 s27; U32 s28; U32 s29; U32 s30; U32 s31; U32 r0; U32 r1; U32 r2; U32 r3; U32 r12; U32 lr; U32 pc; U32 xpsr; }; #ifdef __cplusplus #if __cplusplus } #endif /* __cpluscplus */ #endif /* __cpluscplus */ #endif /* ARMV7_M_TASK_H */