patch-2.1.38 linux/arch/sparc64/kernel/sparcelf32.c

Next file: linux/arch/sparc64/kernel/sys_sparc32.c
Previous file: linux/arch/sparc64/kernel/setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.37/linux/arch/sparc64/kernel/sparcelf32.c linux/arch/sparc64/kernel/sparcelf32.c
@@ -374,7 +374,6 @@
 #define INTERPRETER_AOUT 1
 #define INTERPRETER_ELF 2
 
-
 static inline int
 do_load_elf32_binary(struct linux_binprm * bprm, struct pt_regs * regs)
 {
@@ -577,6 +576,7 @@
 	/* Do this so that we can load the interpreter, if need be.  We will
 	   change some of these later */
 	current->mm->rss = 0;
+	current->tss.flags |= SPARC_FLAG_32BIT;
 	bprm->p = setup_arg_pages(bprm->p, bprm);
 	current->mm->start_stack = bprm->p;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov