Okay I think I've gotten it solved most of the way, we weren't calling
execve via the system call interface, so once I made it go via the system
call and I fill out pc, sp and psl registers in start_thread, it seems to
Thanks for all the help...
On Sun, 20 May 2001, Kenn Humborg wrote:
> On Sun, May 20, 2001 at 05:24:48PM +0100, Dave Airlie wrote:
> > I'm implementing start_thread for the VAX port and am wondering does
> > start_thread have to return to load_elf_binary? I'm working on the init
> > thread and what is happening is it is returning the whole way back to the
> > execve caller .. which I know shouldn't happen.....
> > so I suppose what I'm looking for is the point where the user space code
> > gets control... is it when the registers are set in the start_thread? if
> > so how does start_thread return....
> > On the VAX we have to call a return from interrupt to get to user space
> > and I'm trying to figure out where this should happen...
> I haven't got time to look at this in detail, but you could
> probably do it by frobbing the saved registers that will be
> restored by the ret_from_syscall in entry.S. Do you have
> a pt_regs *regs function argument at the right point? If
> so, it should point to these saved registers.
-- David Airlie, Software Engineer http://www.skynet.ie/~airlied / firstname.lastname@example.org pam_smb / Linux DecStation / Linux VAX / ILUG person
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed May 23 2001 - 21:00:39 EST