about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-26 19:04:25 +0000
committerTheofilos Augoustis <theofilos.augoustis@gmail.com>2025-11-26 19:04:25 +0000
commit83c709bd38b2ed6eca39e83225f4d72c561b13f1 (patch)
tree35b38fba5c8af074bf6166361a3cfe4e993bd82d
parentde4242aca8ff03f8afd3affaff7b9d986e469390 (diff)
downloadfocaccia-83c709bd38b2ed6eca39e83225f4d72c561b13f1.tar.gz
focaccia-83c709bd38b2ed6eca39e83225f4d72c561b13f1.zip
Add support for pipe emulation
-rw-r--r--src/focaccia/qemu/x86.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/focaccia/qemu/x86.py b/src/focaccia/qemu/x86.py
index 90864b4..557879b 100644
--- a/src/focaccia/qemu/x86.py
+++ b/src/focaccia/qemu/x86.py
@@ -23,6 +23,7 @@ emulated_system_calls = {
     19: SyscallInfo('readv', patchup_address_registers=['rsi']),
     20: SyscallInfo('writev'),
     21: SyscallInfo('access'),
+    22: SyscallInfo('pipe', patchup_address_registers=['rdi']),
     24: SyscallInfo('sched_yield'),
     34:  SyscallInfo('pause'),
     35:  SyscallInfo('nanosleep', patchup_address_registers=['rdi', 'rsi']),
@@ -98,6 +99,7 @@ emulated_system_calls = {
     281: SyscallInfo('epoll_pwait', patchup_address_registers=['rsi', 'r8']),
     284: SyscallInfo('eventfd'),
     290: SyscallInfo('eventfd2'),
+    293: SyscallInfo('pipe2', patchup_address_registers=['rdi']),
     297: SyscallInfo('rt_tgsigqueueinfo', patchup_address_registers=['r10']),
     318: SyscallInfo('getrandom', patchup_address_registers=['rdi'])
 }