Skip to content

libmicrokit: improve __assert_fail#428

Open
Ivan-Velickovic wants to merge 1 commit intomainfrom
fix_assert_fail
Open

libmicrokit: improve __assert_fail#428
Ivan-Velickovic wants to merge 1 commit intomainfrom
fix_assert_fail

Conversation

@Ivan-Velickovic
Copy link
Collaborator

This is used by libsel4 headers, we should actually crash when an assert fails and also print out the name of the PD that failed.

This is used by libsel4 headers, we should actually crash when an assert
fails and also print out the name of the PD that failed.

Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
@Ivan-Velickovic Ivan-Velickovic changed the title libmicrokit: improve __asert_fail libmicrokit: improve __assert_fail Mar 6, 2026
@Ivan-Velickovic
Copy link
Collaborator Author

I imagine this should also be a weakly declared function so users can override it?

@midnightveil
Copy link
Contributor

midnightveil commented Mar 6, 2026

I imagine this should also be a weakly declared function so users can override it?

Yes, likely. I think we've run into case before where libc wants to define this.

We should probably also be consistent with our 'asserts' in the header files and microkit_dbg_crash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants