From: Mark Zealey <mark@zealos.org>
To: linux-kernel@vger.kernel.org
Subject: Re: Qn: kernel_thread()
Date: Sat, 2 Feb 2002 22:09:54 +0000 [thread overview]
Message-ID: <20020202220954.GB5032@itsolve.co.uk> (raw)
In-Reply-To: <MCOPFDJKMGLLEBAA@mailcity.com>
In-Reply-To: <MCOPFDJKMGLLEBAA@mailcity.com>
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)
prev parent reply other threads:[~2002-02-02 22:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-02 17:16 Qn: kernel_thread() Alpha Beta
2002-02-02 22:09 ` Mark Zealey [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020202220954.GB5032@itsolve.co.uk \
--to=mark@zealos.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox