Kernel/User Stack - newbie doubt

Hi,
A newbie question.
Can someone tell me why we need a separate
kernel and user stacks? I am not able to get it.
Thanks in advance.

=====

Manoj Paul Joseph,
Master of Computer Applications (final year student),
School of Computer Science and Engineering,
Anna University,
Chennai (Madras),
India.


Want to sell your car? advertise on Yahoo Autos Classifieds. It’s Free!!
visit http://in.autos.yahoo.com

Read Intel Ia32 Architecture manuals to become familiar with protection
mechanism employed and youll understand.

Dan

----- Original Message -----
From: “Manoj Paul Joseph”
To: “NT Developers Interest List”
Sent: Friday, July 12, 2002 4:43 PM
Subject: [ntdev] Kernel/User Stack - newbie doubt

> Hi,
> A newbie question.
> Can someone tell me why we need a separate
> kernel and user stacks? I am not able to get it.
> Thanks in advance.
>
> =====
> -----------------------------------
> Manoj Paul Joseph,
> Master of Computer Applications (final year student),
> School of Computer Science and Engineering,
> Anna University,
> Chennai (Madras),
> India.
>
> ________________________________________________________________________
> Want to sell your car? advertise on Yahoo Autos Classifieds. It’s Free!!
> visit http://in.autos.yahoo.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>

Hi Manoj,

The User Mode Code has less processor previleged where as the Kernel
Mode code has high processor previlege, so in the virtual memory of NT
systems, say of 4 GB seperate partition is made of 2GB for Kernel mode and
another 2GB for User mode code…

for more info, refer, Inside windows NT, or Inside Windows 2000 books…

regards,

Shiva Prasad

What if the user code will set the stack to some idiotic value and
make a syscall? A kernel crash.
To prevent this, the CPU’s hardware automatically switches to the
kernel stack on traps.

Max

----- Original Message -----
From: “Manoj Paul Joseph”
To: “NT Developers Interest List”
Sent: Friday, July 12, 2002 5:43 PM
Subject: [ntdev] Kernel/User Stack - newbie doubt

> Hi,
> A newbie question.
> Can someone tell me why we need a separate
> kernel and user stacks? I am not able to get it.
> Thanks in advance.
>
> =====
> -----------------------------------
> Manoj Paul Joseph,
> Master of Computer Applications (final year student),
> School of Computer Science and Engineering,
> Anna University,
> Chennai (Madras),
> India.
>
>
____________________________________________________________________

> Want to sell your car? advertise on Yahoo Autos Classifieds. It’s
Free!!
> visit http://in.autos.yahoo.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>