Skip to content
Open
Show file tree
Hide file tree
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
93 changes: 62 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ members = [

[workspace.dependencies.sel4-capdl-initializer]
git = "https://github.com/au-ts/rust-sel4"
rev = "33cb132571121a8d846ad3be9066617087ee5c32"
rev = "d20b04cc16f4e5f1018213a3d3e9a45e0352724b"

[workspace.dependencies.sel4-capdl-initializer-types]
git = "https://github.com/au-ts/rust-sel4"
rev = "33cb132571121a8d846ad3be9066617087ee5c32"
rev = "d20b04cc16f4e5f1018213a3d3e9a45e0352724b"

[profile.release.package.microkit-tool]
strip = true
2 changes: 1 addition & 1 deletion libmicrokit/include/microkit.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ typedef unsigned int microkit_child;
typedef unsigned int microkit_ioport;
typedef seL4_MessageInfo_t microkit_msginfo;

#define MONITOR_EP 5
/* Index 5 is unused */

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is probably unnecessary given all the other indices that are unused.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added that to signal to anyone looking at the code later that the index is free to re-use, since previously it was occupied. But I can remove it

/* Only valid in the 'benchmark' configuration */
#define TCB_CAP 6
/* Only valid when the PD has been configured to make SMC calls */
Expand Down
13 changes: 0 additions & 13 deletions libmicrokit/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,18 +200,5 @@ void main(void)
{
run_init_funcs();
init();

/*
* If we are passive, now our initialisation is complete we can
* signal the monitor to unbind our scheduling context and bind
* it to our notification object.
* We delay this signal so we are ready waiting on a recv() syscall
*/
if (microkit_passive) {
microkit_have_signal = seL4_True;
microkit_signal_msg = seL4_MessageInfo_new(0, 0, 0, 0);
microkit_signal_cap = MONITOR_EP;
}

handler_loop();
}
16 changes: 0 additions & 16 deletions monitor/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
#define REPLY_CAP 2
#define BASE_PD_TCB_CAP 10
#define BASE_VM_TCB_CAP 74
#define BASE_SCHED_CONTEXT_CAP 138
#define BASE_NOTIFICATION_CAP 202

extern seL4_IPCBuffer __sel4_ipc_buffer_obj;
seL4_IPCBuffer *__sel4_ipc_buffer = &__sel4_ipc_buffer_obj;
Expand Down Expand Up @@ -731,20 +729,6 @@ static void monitor(void)
seL4_Word pd_id = badge - 1;
seL4_Word tcb_cap = BASE_PD_TCB_CAP + pd_id;

if (label == seL4_Fault_NullFault && pd_id < MAX_PDS) {
/* This is a request from our PD to become passive */
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");
}

continue;
}

puts("MON|ERROR: received message ");
puthex32(label);
puts(" badge: ");
Expand Down
Loading
Loading