9d2951bcd9
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>
20 lines
410 B
C
20 lines
410 B
C
#ifndef __ASM_GENERIC_MMU_H
|
|
#define __ASM_GENERIC_MMU_H
|
|
|
|
/*
|
|
* This is the mmu.h header for nommu implementations.
|
|
* Architectures with an MMU need something more complex.
|
|
*/
|
|
#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
|
|
|
|
#endif /* __ASM_GENERIC_MMU_H */
|