From: Dmitry Selyutin Date: Fri, 22 Sep 2023 18:31:16 +0000 (+0300) Subject: syscalls: fix syscall arguments X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dea1bf241af8539cbf8a2c150a6a8ff9217b8084;p=openpower-isa.git syscalls: fix syscall arguments --- diff --git a/src/openpower/syscalls/__init__.py b/src/openpower/syscalls/__init__.py index bf86718d..5b349ea9 100644 --- a/src/openpower/syscalls/__init__.py +++ b/src/openpower/syscalls/__init__.py @@ -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