syscalls: fix ctypes syscall
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 19 Sep 2023 18:48:13 +0000 (21:48 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Tue, 19 Sep 2023 20:32:21 +0000 (23:32 +0300)
src/openpower/syscalls/__init__.py

index 569655d27f81ace89f142da478c758bf0684f59e..c7999e19c31120ba9b07c4097a4f126ae1b5e90d 100644 (file)
@@ -106,7 +106,7 @@ class Dispatcher:
             syscall.restype = ctypes.c_long
             syscall.argtypes = ([ctypes.c_long] * len(arguments))
 
-            return int(syscall(ctypes.c_ulong(host)))
+            return int(syscall(ctypes.c_ulong(host), *map(ctypes.c_ulong, arguments)))
 
         syscall.__name__ = syscall.__qualname__ = entry