Skip to contentSkip to conversation

x86&x86-64 UML support for sys_indirect

PATCH Superseded Ulrich Drepper 1 participant 1 message Nov 15, 2007 User-mode Linux (UML)

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 x86&x86-64 UML support for sys_indirect

This part adds support for sys_indirect on UML on x86 and x86-64.

 b/arch/um/Makefile                 |    2 +-
 b/include/asm-um/indirect-i386.h   |    6 ++++++
 b/include/asm-um/indirect-x86_64.h |   10 ++++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)
arch/um/Makefile +1 -1
@@ -20,7 +20,7 @@ core-y			+= $(ARCH_DIR)/kernel/		\
 
 # Have to precede the include because the included Makefiles reference them.
 SYMLINK_HEADERS := archparam.h system.h sigcontext.h processor.h ptrace.h \
-	module.h vm-flags.h elf.h host_ldt.h
+	module.h vm-flags.h elf.h host_ldt.h indirect.h
 SYMLINK_HEADERS := $(foreach header,$(SYMLINK_HEADERS),include/asm-um/$(header))
 
 # XXX: The "os" symlink is only used by arch/um/include/os.h, which includes
include/asm-um/indirect-i386.h new file +6 -0
index df588f0..ed21ebe 100644
@@ -0,0 +1,6 @@
+#ifndef __UM_INDIRECT_I386_H
+#define __UM_INDIRECT_I386_H
+
+#include "asm/arch/indirect_32.h"
+
+#endif
include/asm-um/indirect-x86_64.h new file +10 -0
@@ -0,0 +1,10 @@
+#ifndef __UM_INDIRECT_X86_64_H
+#define __UM_INDIRECT_X86_64_H
+
+#include "asm/arch/indirect_64.h"
+
+#undef CALL_INDIRECT
+#define CALL_INDIRECT(regs) \
+  CALL_INDIRECT_WMAX(regs, UM_NR_syscall_max)
+
+#endif