summaryrefslogtreecommitdiff
path: root/Kernel/Syscall.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-08 12:22:55 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-08 12:24:05 +0100
commiteda086699287dcd8f6f858a5d3c0a43009dd9e59 (patch)
treec3a125d429f5602490d9fa140610f10d36d2ab2b /Kernel/Syscall.cpp
parent0b5d5fc3c955baf3029286f2410005d652f9dc2d (diff)
downloadserenity-eda086699287dcd8f6f858a5d3c0a43009dd9e59.zip
Add a C++ helper class for working with shared buffers.
This is a bit more comfortable than passing the shared buffer ID manually everywhere and keeping track of size etc.
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r--Kernel/Syscall.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp
index 945be0e679..2f0cb277c9 100644
--- a/Kernel/Syscall.cpp
+++ b/Kernel/Syscall.cpp
@@ -223,8 +223,12 @@ static dword handle(RegisterDump& regs, dword function, dword arg1, dword arg2,
return current->sys$chown((const char*)arg1, (uid_t)arg2, (gid_t)arg3);
case Syscall::SC_restore_signal_mask:
return current->sys$restore_signal_mask((dword)arg1);
+ case Syscall::SC_seal_shared_buffer:
+ return current->sys$seal_shared_buffer((int)arg1);
+ case Syscall::SC_get_shared_buffer_size:
+ return current->sys$get_shared_buffer_size((int)arg1);
default:
- kprintf("<%u> int0x80: Unknown function %u requested {%x, %x, %x}\n", current->pid(), function, arg1, arg2, arg3);
+ kprintf("<%u> int0x82: Unknown function %u requested {%x, %x, %x}\n", current->pid(), function, arg1, arg2, arg3);
break;
}
return 0;