syscalls: fix syscall arguments
authorDmitry Selyutin <ghostmansd@gmail.com>
Fri, 22 Sep 2023 18:31:16 +0000 (21:31 +0300)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 22 Dec 2023 19:26:20 +0000 (19:26 +0000)
src/openpower/syscalls/__init__.py

index bf86718d5c380fddc8636eea466619235dd82273..5b349ea9e00e646419a3e80e0867bc55967e17f5 100644 (file)
@@ -54,7 +54,7 @@ class Syscall:
         argtypes = syscall.argtypes
         syscall.restype = ctypes.c_long
         syscall.argtypes = ([ctypes.c_long] * len(arguments))
-        res = int(syscall(ctypes.c_ulong(self.host), *map(ctypes.c_ulong, arguments)))
+        res = int(syscall(ctypes.c_long(self.host), *map(ctypes.c_long, arguments)))
         syscall.restype = restype
         syscall.argtypes = argtypes
         return res