mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
Kernel+LibC: Clean up how assertions work in the kernel and LibC
This also brings LibC's abort() function closer to the spec.
This commit is contained in:
parent
33a9b2a3c3
commit
f033416893
13 changed files with 36 additions and 73 deletions
|
@ -48,13 +48,12 @@ void __assertion_failed(const char* msg)
|
|||
{ msg, strlen(msg) },
|
||||
};
|
||||
syscall(SC_set_coredump_metadata, ¶ms);
|
||||
syscall(SC_abort);
|
||||
for (;;) { }
|
||||
abort();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void __crash()
|
||||
void _abort()
|
||||
{
|
||||
asm volatile("ud2");
|
||||
__builtin_unreachable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue