RE: [uml-devel] Question about kernel_thread in UML TT mode

2005-04-29 Thread stian
> extern void kernel_thread_helper(void); > __asm__(".section .text\n" > ".align 4\n" > "kernel_thread_helper:\n\t" > "movl %edx,%eax\n\t" > "pushl %edx\n\t" > "call *%ebx\n\t" > "pushl %eax\n\t" > "call do_exit\n" > ".previous"); kernel_thread helpe

RE: [uml-devel] Question about kernel_thread in UML TT mode

2005-04-29 Thread Alex LIU
On Thursday 29 April 2005, Blaisorblade wrote: > What's kernel_thread_helper? kernel_thread_helper and kernel_thread are defined in i386 as following: --- /* * This gets run with %ebx containing the * function to call, and %edx containing * the "args

Re: [uml-devel] Question about kernel_thread in UML TT mode

2005-04-28 Thread Blaisorblade
On Thursday 28 April 2005 12:00, Alex LIU wrote: > Hi,all: > > I found UML only implement its own kernel_thread function but doesn't > implement kernel_thread_helper function. ??? What's kernel_thread_helper? kernel_thread calls the arch-independent do_fork(), which works like the rest. In particu

[uml-devel] Question about kernel_thread in UML TT mode

2005-04-28 Thread Alex LIU
Hi,all: I found UML only implement its own kernel_thread function but doesn't implement kernel_thread_helper function. Then how does UML start a kernel thread in TT mode? Is there any other functions being called? Thanks a lot! Alex ---