syscalls: fix ctypes syscall
authorDmitry Selyutin <ghostmansd@gmail.com>
Tue, 19 Sep 2023 18:48:13 +0000 (21:48 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 26 Sep 2023 21:08:32 +0000 (22:08 +0100)
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