Commit bdd15a28 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Ungerer
Browse files

binfmt_flat: replace flat_argvp_envp_on_stack with a Kconfig variable



This will eventually allow us to kill the need for an <asm/flat.h> for
many cases.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarVladimir Murzin <vladimir.murzin@arm.com>
Reviewed-by: default avatarVladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
parent 1d52dca1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30,6 +30,7 @@ config ARM
	select ARCH_USE_BUILTIN_BSWAP
	select ARCH_USE_CMPXCHG_LOCKREF
	select ARCH_WANT_IPC_PARSE_VERSION
	select BINFMT_FLAT_ARGVP_ENVP_ON_STACK
	select BUILDTIME_EXTABLE_SORT if MMU
	select CLONE_BACKWARDS
	select CPU_PM if SUSPEND || CPU_IDLE
+0 −2
Original line number Diff line number Diff line
@@ -8,8 +8,6 @@

#include <linux/uaccess.h>

#define	flat_argvp_envp_on_stack()		1

static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
					u32 *addr, u32 *persistent)
{
+0 −1
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@

#include <asm/unaligned.h>

#define flat_argvp_envp_on_stack()			0
static inline int flat_get_addr_from_rp(u32 __user *rp, u32 relval, u32 flags,
					u32 *addr, u32 *persistent)
{
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
config H8300
        def_bool y
	select ARCH_32BIT_OFF_T
	select BINFMT_FLAT_ARGVP_ENVP_ON_STACK
	select BINFMT_FLAT_OLD_ALWAYS_RAM
	select GENERIC_ATOMIC64
	select HAVE_UID16
+0 −2
Original line number Diff line number Diff line
@@ -8,8 +8,6 @@

#include <asm/unaligned.h>

#define	flat_argvp_envp_on_stack()		1

/*
 * on the H8 a couple of the relocations have an instruction in the
 * top byte.  As there can only be 24bits of address space,  we just
Loading