Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libmicrokit: add error message for entry points not provided #226

Merged
merged 1 commit into from
Oct 21, 2024
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
6 changes: 6 additions & 0 deletions libmicrokit/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,17 @@ extern const void (*const __init_array_end [])(void);

__attribute__((weak)) microkit_msginfo protected(microkit_channel ch, microkit_msginfo msginfo)
{
microkit_dbg_puts(microkit_name);
microkit_dbg_puts(" is missing the 'protected' entry point\n");
microkit_internal_crash(0);
return seL4_MessageInfo_new(0, 0, 0, 0);
}

__attribute__((weak)) seL4_Bool fault(microkit_child child, microkit_msginfo msginfo, microkit_msginfo *reply_msginfo)
{
microkit_dbg_puts(microkit_name);
microkit_dbg_puts(" is missing the 'fault' entry point\n");
microkit_internal_crash(0);
return seL4_False;
}

Expand Down
Loading