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=fe73e9e8f3ed2a68171c10d462ccef6d6ccdb24c;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