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=24dacd1a1b285b1d22079011649cbedb17097e14;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