From: Dmitry Selyutin Date: Tue, 19 Sep 2023 18:48:13 +0000 (+0300) Subject: syscalls: fix ctypes syscall X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e64482642228af990859292fd21bc786cfeb69ff;p=openpower-isa.git syscalls: fix ctypes syscall --- diff --git a/src/openpower/syscalls/__init__.py b/src/openpower/syscalls/__init__.py index 569655d2..c7999e19 100644 --- a/src/openpower/syscalls/__init__.py +++ b/src/openpower/syscalls/__init__.py @@ -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