* Does cr3 register change when a new process is scheduled ?
@ 2009-01-15 2:33 George Kumar
2009-01-15 2:43 ` Peter Teoh
0 siblings, 1 reply; 3+ messages in thread
From: George Kumar @ 2009-01-15 2:33 UTC (permalink / raw)
To: linux-newbie
Let us suppose we are talking about a uni processor system. Do we
change cr3 page directory control register when a new process is
scheduled to run on the CPU.
thanks.
George
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does cr3 register change when a new process is scheduled ?
2009-01-15 2:33 Does cr3 register change when a new process is scheduled ? George Kumar
@ 2009-01-15 2:43 ` Peter Teoh
2009-04-25 3:06 ` Jeffrey Cao
0 siblings, 1 reply; 3+ messages in thread
From: Peter Teoh @ 2009-01-15 2:43 UTC (permalink / raw)
To: George Kumar; +Cc: linux-newbie
yes, every process running will have a different CR3 value....easily
seen when u printk() the value from different kernel module....and the
kernel module is running in the same process context as the "insmod"
that started the kernel module....so u can see the process name is
"insmod" if u printk() the value of the process name. ie, user +
kernel mode all shared the same CR3 value, but different process will
have different value.
On Thu, Jan 15, 2009 at 10:33 AM, George Kumar <grgkumar4@gmail.com> wrote:
> Let us suppose we are talking about a uni processor system. Do we
> change cr3 page directory control register when a new process is
> scheduled to run on the CPU.
>
> thanks.
> George
> --
--
Regards,
Peter Teoh
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Does cr3 register change when a new process is scheduled ?
2009-01-15 2:43 ` Peter Teoh
@ 2009-04-25 3:06 ` Jeffrey Cao
0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey Cao @ 2009-04-25 3:06 UTC (permalink / raw)
To: linux-newbie
On 2009-01-15, Peter Teoh <htmldeveloper@gmail.com> wrote:
> yes, every process running will have a different CR3 value....easily
> seen when u printk() the value from different kernel module....and the
> kernel module is running in the same process context as the "insmod"
> that started the kernel module....so u can see the process name is
> "insmod" if u printk() the value of the process name. ie, user +
Not exactly, module is not a process. It is just some functions registered
into the kernel space. You see the process name is "insmod" is because that
you put your printk statement in the module initialization function. You
execute insmod to call the initialization function, so the module's init
function is in "insmod" process context. If you execute other command to
call ioctl to the module, and then the module is executed in other process
context.
Jeffrey
> kernel mode all shared the same CR3 value, but different process will
> have different value.
>
> On Thu, Jan 15, 2009 at 10:33 AM, George Kumar <grgkumar4@gmail.com> wrote:
>> Let us suppose we are talking about a uni processor system. Do we
>> change cr3 page directory control register when a new process is
>> scheduled to run on the CPU.
>>
>> thanks.
>> George
>> --
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" 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.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-25 3:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-15 2:33 Does cr3 register change when a new process is scheduled ? George Kumar
2009-01-15 2:43 ` Peter Teoh
2009-04-25 3:06 ` Jeffrey Cao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox