Skip to content

Commit

Permalink
squash haskell: PR suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Lewis <[email protected]>
  • Loading branch information
corlewis committed Sep 26, 2024
1 parent 6662cb6 commit 3aaac5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/haskell/src/SEL4/Object/TCB/AARCH64.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ postSetFlags :: PPtr TCB -> TcbFlags -> Kernel ()
postSetFlags t flags =
when (tcbFlagToWord (ArchFlag FpuDisabled) .&. flags /= 0) (fpuRelease t)

-- Save and clear FPU state before setting the domain of a TCB, to ensure that
-- we do not later write to cross-domain state.
prepareSetDomain :: PPtr TCB -> Domain -> Kernel ()
prepareSetDomain t newDom = do
curDom <- curDomain
Expand Down

0 comments on commit 3aaac5d

Please sign in to comment.