File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -732,19 +732,13 @@ static void monitor(void)
732732 seL4_Word tcb_cap = BASE_PD_TCB_CAP + pd_id ;
733733
734734 if (label == seL4_Fault_NullFault && pd_id < MAX_PDS ) {
735- /* This is a request from our PD to become passive */
736- err = seL4_SchedContext_UnbindObject (BASE_SCHED_CONTEXT_CAP + pd_id , tcb_cap );
735+ err = seL4_SchedContext_Bind (BASE_SCHED_CONTEXT_CAP + pd_id , BASE_NOTIFICATION_CAP + pd_id );
737736 if (err != seL4_NoError ) {
738- puts ("MON|ERROR: could not unbind scheduling context from thread control block \n" );
737+ puts ("MON|ERROR: could not bind scheduling context to notification object \n" );
739738 } else {
740- err = seL4_SchedContext_Bind (BASE_SCHED_CONTEXT_CAP + pd_id , BASE_NOTIFICATION_CAP + pd_id );
741- if (err != seL4_NoError ) {
742- puts ("MON|ERROR: could not bind scheduling context to notification object\n" );
743- } else {
744- puts ("MON|INFO: PD '" );
745- puts (pd_names [pd_id ]);
746- puts ("' is now passive!\n" );
747- }
739+ puts ("MON|INFO: PD '" );
740+ puts (pd_names [pd_id ]);
741+ puts ("' is now passive!\n" );
748742 }
749743
750744 continue ;
You can’t perform that action at this time.
0 commit comments