From: Lars-Peter Clausen <lars@metafoo.de>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Mark Salter <msalter@redhat.com>,
Aurelien Jacquiot <a-jacquiot@ti.com>,
Yoshinori Sato <ysato@users.sourceforge.jp>,
Chris Zankel <chris@zankel.net>,
Max Filippov <jcmvbkbc@gmail.com>,
linux-c6x-dev@linux-c6x.org, linux-kernel@vger.kernel.org,
linux-xtensa@linux-xtensa.org, linux-arch@vger.kernel.org,
Lars-Peter Clausen <lars@metafoo.de>
Subject: [PATCH resend 2/5] asm-generic/mmu.h: Add support for FDPIC
Date: Sat, 1 Dec 2012 14:24:41 +0100 [thread overview]
Message-ID: <1354368284-11625-2-git-send-email-lars@metafoo.de> (raw)
In-Reply-To: <1354368284-11625-1-git-send-email-lars@metafoo.de>
No-MMU architectures often have support for FDPIC binaries. FDPIC support
requires two additional fields in the mm_context_t struct. This patch adds these
fields to the generic mm_context_t definition if support for FDPIC binaries is
enabled. This allows to use the generic mmu.h for a few more architectures.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
---
include/asm-generic/mmu.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/asm-generic/mmu.h b/include/asm-generic/mmu.h
index a67ae0a9..0ed3f1c 100644
--- a/include/asm-generic/mmu.h
+++ b/include/asm-generic/mmu.h
@@ -8,6 +8,11 @@
#ifndef __ASSEMBLY__
typedef struct {
unsigned long end_brk;
+
+#ifdef CONFIG_BINFMT_ELF_FDPIC
+ unsigned long exec_fdpic_loadmap;
+ unsigned long interp_fdpic_loadmap;
+#endif
} mm_context_t;
#endif
--
1.7.2.5
next prev parent reply other threads:[~2012-12-01 13:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-01 13:24 [PATCH resend 1/5] asm-generic/mmu.h: Remove unused vmlist field from mm_context_t Lars-Peter Clausen
2012-12-01 13:24 ` Lars-Peter Clausen [this message]
2012-12-01 13:24 ` [PATCH resend 3/5] c6x: Use generic asm/mmu.h Lars-Peter Clausen
2012-12-01 13:24 ` [PATCH resend 4/5] h8300: " Lars-Peter Clausen
2012-12-01 13:24 ` [PATCH resend 5/5] xtensa: Use generic asm/mmu.h for nommu Lars-Peter Clausen
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=1354368284-11625-2-git-send-email-lars@metafoo.de \
--to=lars@metafoo.de \
--cc=a-jacquiot@ti.com \
--cc=arnd@arndb.de \
--cc=chris@zankel.net \
--cc=jcmvbkbc@gmail.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-c6x-dev@linux-c6x.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xtensa@linux-xtensa.org \
--cc=msalter@redhat.com \
--cc=ysato@users.sourceforge.jp \
/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®