diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-05-20 12:29:09 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2025-05-20 12:29:09 +0000 |
| commit | 8a6a9a3a159ce1b960721eb921b8e8d81b15b718 (patch) | |
| tree | e2d05240795ece00e6599c97b959c1696f66cb78 /arch/x86_64/src/context_switching | |
| parent | 8d39f3f67734bf39cada370c39243e6ef33bf4a0 (diff) | |
| download | teachos-8a6a9a3a159ce1b960721eb921b8e8d81b15b718.tar.xz teachos-8a6a9a3a159ce1b960721eb921b8e8d81b15b718.zip | |
Improve syscalls and user heap allocator
Diffstat (limited to 'arch/x86_64/src/context_switching')
| -rw-r--r-- | arch/x86_64/src/context_switching/syscall/syscall_handler.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp b/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp index cd1c8a2..af6d911 100644 --- a/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp +++ b/arch/x86_64/src/context_switching/syscall/syscall_handler.cpp @@ -1,6 +1,7 @@ #include "arch/context_switching/syscall/syscall_handler.hpp" #include "arch/context_switching/syscall/main.hpp" +#include "arch/exception_handling/assert.hpp" #include "arch/exception_handling/panic.hpp" #include "arch/memory/heap/global_heap_allocator.hpp" #include "arch/memory/main.hpp" @@ -61,10 +62,7 @@ namespace teachos::arch::context_switching::syscall result = expand_user_heap(); break; case type::ASSERT: - if (!arg_0) - { - teachos::arch::exception_handling::panic(reinterpret_cast<const char *>(arg_1)); - } + teachos::arch::exception_handling::assert(arg_0, reinterpret_cast<const char *>(arg_1)); break; default: teachos::arch::exception_handling::panic("[Syscall Handler] Invalid syscall number"); |
