From: Dmitry Selyutin Date: Fri, 22 Sep 2023 18:10:25 +0000 (+0300) Subject: syscalls: fix sys_ni_syscall call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56c023d12753e051b63a39b8fb3a1f1e0b265fa8;p=openpower-isa.git syscalls: fix sys_ni_syscall call --- diff --git a/src/openpower/syscalls/__init__.py b/src/openpower/syscalls/__init__.py index 68bef552..d89ecdb9 100644 --- a/src/openpower/syscalls/__init__.py +++ b/src/openpower/syscalls/__init__.py @@ -1,4 +1,5 @@ import ctypes +import errno import inspect import json import pathlib @@ -60,6 +61,9 @@ class UnimplementedSyscall(Syscall): def __init__(self, guest): return super().__init__(entry="sys_ni_syscall", guest=guest, host=-1, parameters=tuple()) + def __call__(self, *arguments): + return -errno.ENOSYS + class UnknownSyscall(Syscall): def __init__(self, entry, guest):