Skip to content

Commit

Permalink
asm-generic/mmu.h: Add support for FDPIC
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Lars-Peter Clausen authored and Arnd Bergmann committed Dec 9, 2012
1 parent 20154fd commit 9d2951b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/asm-generic/mmu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9d2951b

Please sign in to comment.