From e64482642228af990859292fd21bc786cfeb69ff Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Tue, 19 Sep 2023 21:48:13 +0300 Subject: [PATCH] syscalls: fix ctypes syscall --- src/openpower/syscalls/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2