From cccc8d8aeb0e204283c76ccb0e92fba2e2a0071c Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 26 Feb 2019 12:57:02 +0100 Subject: More compat work. Move syscall to int 0x82 since using int 0x80 was kinda prone to fork bombs when building things on Linux. :^) --- Kernel/Process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Kernel/Process.cpp') diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 435b781e14..6ea20a9ce5 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -886,8 +886,8 @@ ShouldUnblockProcess Process::dispatch_signal(byte signal) *code_ptr++ = 0xb8; // mov eax, *(dword*)code_ptr = Syscall::SC_sigreturn; code_ptr += sizeof(dword); - *code_ptr++ = 0xcd; // int 0x80 - *code_ptr++ = 0x80; + *code_ptr++ = 0xcd; // int 0x82 + *code_ptr++ = 0x82; *code_ptr++ = 0x0f; // ud2 *code_ptr++ = 0x0b; -- cgit v1.2.3