summaryrefslogtreecommitdiff
path: root/Kernel/Syscall.cpp
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-18 08:43:10 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-18 11:11:15 +0200
commitf033416893b097e9f148711c161537db328d02cd (patch)
tree947bfc71b0fb8c48663a2e625e1a922b87e534b7 /Kernel/Syscall.cpp
parent33a9b2a3c325e8875e75bd58d64de3463bf7f5d3 (diff)
downloadserenity-f033416893b097e9f148711c161537db328d02cd.zip
Kernel+LibC: Clean up how assertions work in the kernel and LibC
This also brings LibC's abort() function closer to the spec.
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r--Kernel/Syscall.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp
index fc15c2f677..bd7a46bcc0 100644
--- a/Kernel/Syscall.cpp
+++ b/Kernel/Syscall.cpp
@@ -99,7 +99,7 @@ KResultOr<FlatPtr> handle(RegisterState& regs, FlatPtr function, FlatPtr arg1, F
auto& process = current_thread->process();
current_thread->did_syscall();
- if (function == SC_abort || function == SC_exit || function == SC_exit_thread) {
+ if (function == SC_exit || function == SC_exit_thread) {
// These syscalls need special handling since they never return to the caller.
if (auto* tracer = process.tracer(); tracer && tracer->is_tracing_syscalls()) {
@@ -109,9 +109,6 @@ KResultOr<FlatPtr> handle(RegisterState& regs, FlatPtr function, FlatPtr arg1, F
}
switch (function) {
- case SC_abort:
- process.sys$abort();
- break;
case SC_exit:
process.sys$exit(arg1);
break;