reduce UserLevelFault code to 28 bits
This makes room for a 4-bit seL4_FaultType field.
This commit is contained in:
parent
4e12863b0f
commit
2e556d4a33
|
@ -349,7 +349,7 @@ where
|
|||
|
||||
| "handle_event (UserLevelFault w1 w2) = (without_preemption $ do
|
||||
thread \<leftarrow> gets cur_thread;
|
||||
handle_fault thread $ UserException (w1 && mask 32) (w2 && mask 29);
|
||||
handle_fault thread $ UserException (w1 && mask 32) (w2 && mask 28);
|
||||
return ()
|
||||
od)"
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ bottom 32 bits be communicated to the fault handler, for the second word
|
|||
|
||||
> handleEvent (UserLevelFault w1 w2) = withoutPreemption $ do
|
||||
> thread <- getCurThread
|
||||
> handleFault thread $ UserException (w1 .&. mask 32) (w2 .&. mask 29)
|
||||
> handleFault thread $ UserException (w1 .&. mask 32) (w2 .&. mask 28)
|
||||
> return ()
|
||||
|
||||
\subsubsection{Virtual Memory Faults}
|
||||
|
|
|
@ -216,7 +216,7 @@ where
|
|||
|
||||
| "handle_event (UserLevelFault w1 w2) = (without_preemption $ do
|
||||
thread \<leftarrow> gets cur_thread;
|
||||
handle_fault thread $ UserException w1 (w2 && mask 29);
|
||||
handle_fault thread $ UserException w1 (w2 && mask 28);
|
||||
return ()
|
||||
od)"
|
||||
|
||||
|
|
Loading…
Reference in New Issue