mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:57:44 +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
|
@ -220,9 +220,6 @@ u32 Emulator::virt_syscall(u32 function, u32 arg1, u32 arg2, u32 arg3)
|
|||
case SC_sync:
|
||||
virt$sync();
|
||||
return 0;
|
||||
case SC_abort:
|
||||
virt$abort();
|
||||
return 0;
|
||||
case SC_exit:
|
||||
virt$exit((int)arg1);
|
||||
return 0;
|
||||
|
@ -1036,14 +1033,6 @@ void Emulator::virt$sync()
|
|||
syscall(SC_sync);
|
||||
}
|
||||
|
||||
void Emulator::virt$abort()
|
||||
{
|
||||
reportln("\n=={}== \033[33;1mSyscall: abort\033[0m, shutting down!", getpid());
|
||||
m_exit_status = 127;
|
||||
m_shutdown = true;
|
||||
dump_backtrace();
|
||||
}
|
||||
|
||||
void Emulator::virt$exit(int status)
|
||||
{
|
||||
reportln("\n=={}== \033[33;1mSyscall: exit({})\033[0m, shutting down!", getpid(), status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue