From 04a3cbab41fe102ae3aa64be74734263e51df2d4 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 22 Sep 2023 21:10:25 +0300 Subject: [PATCH] syscalls: fix sys_ni_syscall call --- src/openpower/syscalls/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) 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): -- 2.30.2