summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_flat.c
diff options
context:
space:
mode:
authorTakashi YOSHII <yoshii.takashi@renesas.com>2008-08-11 20:10:54 +0900
committerPaul Mundt <lethal@linux-sh.org>2008-08-11 20:17:55 +0900
commit74c27c43ebd020fcb65364613503f6c08dc6f535 (patch)
tree85516a90b7cab850a586bb21cf7e1352c0463470 /fs/binfmt_flat.c
parentce9c008c8bea25a974d9027b7c6602d535639899 (diff)
downloadop-kernel-dev-74c27c43ebd020fcb65364613503f6c08dc6f535.zip
op-kernel-dev-74c27c43ebd020fcb65364613503f6c08dc6f535.tar.gz
binfmt_flat: Stub in a FLAT_PLAT_INIT().
This provides a FLAT_PLAT_INIT() arch hook for platforms that need to set up specific register state prior to calling in to the process, as per ELF_PLAT_INIT(). Signed-off-by: Takashi YOSHII <yoshii.takashi@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'fs/binfmt_flat.c')
-rw-r--r--fs/binfmt_flat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index 56372ec..dfc0197 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -914,7 +914,9 @@ static int load_flat_binary(struct linux_binprm * bprm, struct pt_regs * regs)
/* Stash our initial stack pointer into the mm structure */
current->mm->start_stack = (unsigned long )sp;
-
+#ifdef FLAT_PLAT_INIT
+ FLAT_PLAT_INIT(regs);
+#endif
DBG_FLT("start_thread(regs=0x%x, entry=0x%x, start_stack=0x%x)\n",
(int)regs, (int)start_addr, (int)current->mm->start_stack);
OpenPOWER on IntegriCloud