Re: Qn: kernel_thread()

From: Mark Zealey (mark@zealos.org)
Date: Sat Feb 02 2002 - 17:09:54 EST


On Sat, Feb 02, 2002 at 10:46:20PM +0530, Alpha Beta wrote:

> In the code of
> int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)
> in arch/i386/kernel/process.c
>
> as can be seen in the code here, a system call is made by trigerring the 0x80 interrupt.
> this function kernel_thread() is used to launch the init process during booting by
> start_kernel() //in init/main.c
> But at that time, the process 0 which calls kernel_thread is executing in Kernel mode, so why should some process in kernel mode make a system call??

Easy way to get the registers dumped into memory

-- 

Mark Zealey mark@zealos.org mark@itsolve.co.uk

UL++++>$ G!>(GCM/GCS/GS/GM) dpu? s:-@ a16! C++++>$ P++++>+++++$ L+++>+++++$ !E---? W+++>$ N- !o? !w--- O? !M? !V? !PS !PE--@ PGP+? r++ !t---?@ !X---? !R- b+ !tv b+ DI+ D+? G+++ e>+++++ !h++* r!-- y--

(www.geekcode.com) - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org 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 : Thu Feb 07 2002 - 21:00:25 EST