mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ulrich Drepper <drepper@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, torvalds@linux-foundation.org
Subject: [PATCH 3/4] x86&x86-64 UML support for sys_indirect
Date: Thu, 15 Nov 2007 11:41:22 -0500	[thread overview]
Message-ID: <200711151641.lAFGfMm6024339@devserv.devel.redhat.com> (raw)

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(-)


--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -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
diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S
index df588f0..ed21ebe 100644
--- /dev/null	2007-09-23 16:36:38.465394704 -0700
+++ b/include/asm-um/indirect-i386.h	2007-11-14 22:20:40.000000000 -0800
@@ -0,0 +1,6 @@
+#ifndef __UM_INDIRECT_I386_H
+#define __UM_INDIRECT_I386_H
+
+#include "asm/arch/indirect_32.h"
+
+#endif
--- /dev/null	2007-09-23 16:36:38.465394704 -0700
+++ b/include/asm-um/indirect-x86_64.h	2007-11-14 22:20:58.000000000 -0800
@@ -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

                 reply	other threads:[~2007-11-15 16:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200711151641.lAFGfMm6024339@devserv.devel.redhat.com \
    --to=drepper@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®