首页> 外国专利> Method of context switch on ARM7 series

Method of context switch on ARM7 series

机译:ARM7系列上的上下文切换方法

摘要

PURPOSE: A method for a context switch in an ARM7 series micro controller is provided to support a multi-thread environment by being applied to the micro controller of an ARM7TDMI or a similar kind thereof. CONSTITUTION: If an interrupt is generated(S201), it is judged whether the generated interrupt is a timer interrupt(S202). If the generated interrupt is a timer interrupt, an interrupt masking bit and an interrupt pending bit are set, and a stable state is entered(S203). If a timer interrupt is generated, an FIR(Fast Interrupt Request) handler is executed, a micro controller moves a stack pointer to a timer interrupt exclusive stack(S204) and stores an access available register firstly(S205). A CPSR(Current program Status Register) register of an FIR mode is stored in a stack temporarily, and a user program mode is entered(S206). Contexts of the remaining registers capable of accessing to only a user program mode are stored(S207). The FIQ mode is returned(S208). If a register context storing job is terminated through the above stages, the stage is jumped to an OS routine(S209).
机译:目的:通过将ARM7系列微控制器中的上下文切换方法应用于ARM7TDMI或其类似类型的微控制器,来支持多线程环境。构成:如果产生中断(S201),则判断产生的中断是否是定时器中断(S202)。如果产生的中断是定时器中断,则将中断屏蔽位和中断等待位设置为1,并进入稳定状态(S203)。如果产生定时器中断,则执行FIR(快速中断请求)处理程序,微控制器将堆栈指针移动到定时器中断专用栈(S204),并首先存储访问可用寄存器(S205)。 FIR模式的CPSR(当前程序状态寄存器)寄存器被临时存储在堆栈中,并且进入用户程序模式(S206)。存储仅能够访问用户程序模式的其余寄存器的上下文(S207)。返回FIQ模式(S208)。如果通过上述阶段终止了寄存器上下文存储作业,则该阶段跳到OS例程(S209)。

著录项

  • 公开/公告号KR100870175B1

    专利类型

  • 公开/公告日2008-11-25

    原文格式PDF

  • 申请/专利权人

    申请/专利号KR20020008440

  • 发明设计人 김정수;강태호;

    申请日2002-02-18

  • 分类号G06F13/24;

  • 国家 KR

  • 入库时间 2022-08-21 19:14:21

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号