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=04a3cbab41fe102ae3aa64be74734263e51df2d4;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):