SWENR异常不可返回,依照CPU与指令集的手册,异常处理过程中会关闭中断使能TSR.GIE,那么在处理完SWENR异常后,想要再处理可屏蔽中断是不是要软件重新开启全局中断使能呢?
麻烦各位大神解答,谢谢谢谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
SWENR异常不可返回,依照CPU与指令集的手册,异常处理过程中会关闭中断使能TSR.GIE,那么在处理完SWENR异常后,想要再处理可屏蔽中断是不是要软件重新开启全局中断使能呢?
麻烦各位大神解答,谢谢谢谢
SWENR是没有返回值的,一般用于从user mode切换到supervisor mode,不再回到user mode。
The SWENR instruction can also be used to terminate a user mode task. The SWENR instruction is similar to the SWE instruction except that no provision is made for returning to the user mode task and the transfer of control is to the address pointed to by REP instead of the NMI/exception vector. The supervisor mode should have earlier placed the correct address in REP.