From fe73e9e8f3ed2a68171c10d462ccef6d6ccdb24c 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