Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions monitor/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,18 +733,13 @@ static void monitor(void)

if (label == seL4_Fault_NullFault && pd_id < MAX_PDS) {
/* This is a request from our PD to become passive */
err = seL4_SchedContext_UnbindObject(BASE_SCHED_CONTEXT_CAP + pd_id, tcb_cap);
err = seL4_SchedContext_Bind(BASE_SCHED_CONTEXT_CAP + pd_id, BASE_NOTIFICATION_CAP + pd_id);
if (err != seL4_NoError) {
puts("MON|ERROR: could not unbind scheduling context from thread control block\n");
puts("MON|ERROR: could not bind scheduling context to notification object\n");
} else {
err = seL4_SchedContext_Bind(BASE_SCHED_CONTEXT_CAP + pd_id, BASE_NOTIFICATION_CAP + pd_id);
if (err != seL4_NoError) {
puts("MON|ERROR: could not bind scheduling context to notification object\n");
} else {
puts("MON|INFO: PD '");
puts(pd_names[pd_id]);
puts("' is now passive!\n");
}
puts("MON|INFO: PD '");
puts(pd_names[pd_id]);
puts("' is now passive!\n");
}

continue;
Expand Down
Loading