Skip to content

Commit

Permalink
Can't use DAIF in usermode (duh), TODO: refactor it's usage in REGS
Browse files Browse the repository at this point in the history
  • Loading branch information
tewaro committed Oct 7, 2020
1 parent ca57c0a commit 9650164
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libs/thread/isa/aarch64/ThreadSwitch.S
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ BEGIN_FUNC(thread_save)
stp x22, x23, [x0, #4 * 8]
stp x20, x21, [x0, #2 * 8]
stp x1, x19, [x0, #0 * 8]
mrs x1,DAIF
mrs x2,NZCV
stp x1, x2, [x0, #14 * 8]
mov x0, #0
Expand All @@ -24,7 +23,6 @@ END_FUNC(thread_save)
# bool thread_resume(m3::Thread::Regs *regs);
BEGIN_FUNC(thread_resume)
ldp x1, x2, [x0, #14 * 8]
msr DAIF, x1
msr NZCV, x2
ldp x30, x3, [x0, #12 * 8]
mov sp, x3
Expand Down

0 comments on commit 9650164

Please sign in to comment.