From 99c290ff878dbdb03ffd8b90964fcc1bd02452d0 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 22 Sep 2023 21:31:16 +0300 Subject: [PATCH] syscalls: fix syscall arguments --- 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 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 -- 2.30.2