From ff429a805607ee2f5f992f9f6750bb532b44ca13 Mon Sep 17 00:00:00 2001 From: Christian Prochaska Date: Tue, 3 Nov 2020 16:22:43 +0100 Subject: [PATCH] base-linux: build 'lx_iopl()' function on x86 only Fixes #3934 --- repos/base-linux/src/core/include/core_linux_syscalls.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repos/base-linux/src/core/include/core_linux_syscalls.h b/repos/base-linux/src/core/include/core_linux_syscalls.h index 5af4afd931..0dc3ba01db 100644 --- a/repos/base-linux/src/core/include/core_linux_syscalls.h +++ b/repos/base-linux/src/core/include/core_linux_syscalls.h @@ -72,10 +72,12 @@ inline int lx_stat(const char *path, struct stat64 *buf) ** Functions used by core's io port session support code ** ***********************************************************/ +#if defined(__x86_64__) || defined(__i386__) inline int lx_iopl(int level) { return lx_syscall(SYS_iopl, level); } +#endif /************************************************** ** Functions used by core's io mem session code **