From 24dacd1a1b285b1d22079011649cbedb17097e14 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