Merge pull request #3178 from IronMan999/master

修改了上下文切换退出时的bug,该bug会导致中断被提前打开造成死锁
This commit is contained in:
Bernard Xiong 2019-11-11 08:26:48 +08:00 committed by GitHub
commit cc2316ed4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ rt_hw_context_switch_exit:
LOAD x1, 1 * REGBYTES(sp) LOAD x1, 1 * REGBYTES(sp)
li t0, 0x00001800 li t0, 0x00001800
csrs mstatus, t0 csrw mstatus, t0
LOAD a0, 2 * REGBYTES(sp) LOAD a0, 2 * REGBYTES(sp)
csrs mstatus, a0 csrs mstatus, a0