diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-26 12:57:02 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-26 12:57:02 +0100 |
commit | cccc8d8aeb0e204283c76ccb0e92fba2e2a0071c (patch) | |
tree | 18a99d2ee1e53b2dc993220d93a4a1993f5c5925 /Kernel/Syscall.h | |
parent | f6b41d166d0e1b42c8b029ab69b2ae12071ea9f7 (diff) | |
download | serenity-cccc8d8aeb0e204283c76ccb0e92fba2e2a0071c.zip |
More compat work.
Move syscall to int 0x82 since using int 0x80 was kinda prone to fork bombs
when building things on Linux. :^)
Diffstat (limited to 'Kernel/Syscall.h')
-rw-r--r-- | Kernel/Syscall.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Syscall.h b/Kernel/Syscall.h index 730eb9b923..4621da47d9 100644 --- a/Kernel/Syscall.h +++ b/Kernel/Syscall.h @@ -131,7 +131,7 @@ int sync(); inline dword invoke(Function function) { dword result; - asm volatile("int $0x80":"=a"(result):"a"(function):"memory"); + asm volatile("int $0x82":"=a"(result):"a"(function):"memory"); return result; } @@ -139,7 +139,7 @@ template<typename T1> inline dword invoke(Function function, T1 arg1) { dword result; - asm volatile("int $0x80":"=a"(result):"a"(function),"d"((dword)arg1):"memory"); + asm volatile("int $0x82":"=a"(result):"a"(function),"d"((dword)arg1):"memory"); return result; } @@ -147,7 +147,7 @@ template<typename T1, typename T2> inline dword invoke(Function function, T1 arg1, T2 arg2) { dword result; - asm volatile("int $0x80":"=a"(result):"a"(function),"d"((dword)arg1),"c"((dword)arg2):"memory"); + asm volatile("int $0x82":"=a"(result):"a"(function),"d"((dword)arg1),"c"((dword)arg2):"memory"); return result; } @@ -155,7 +155,7 @@ template<typename T1, typename T2, typename T3> inline dword invoke(Function function, T1 arg1, T2 arg2, T3 arg3) { dword result; - asm volatile("int $0x80":"=a"(result):"a"(function),"d"((dword)arg1),"c"((dword)arg2),"b"((dword)arg3):"memory"); + asm volatile("int $0x82":"=a"(result):"a"(function),"d"((dword)arg1),"c"((dword)arg2),"b"((dword)arg3):"memory"); return result; } #endif |