Set the kernel stack pointer, meaning the value
that should be loaded in the ESP register
upon return to ring 0 (kernel mode)
after executing in ring 3 (user mode).
-Dave
On Thu, Apr 17, 2008 at 1:42 AM, <wm...@ao...> wrote:
> In project 2, user.c, the following function comments say to set the kernel
> stack pointer. To what? I am confused here. Any help would be appreciated.
>
>
> void Switch_To_User_Context(struct Kernel_Thread* kt, struct
> Interrupt_State* is)
> {
> /*
> * Hint: Before executing in user mode, you will need to call
> * the Set_Kernel_Stack_Pointer() and Switch_To_Address_Space()
> * functions.
> */
>
> ...
>
> Set_Kernel_Stack_Pointer((ulong_t) ?);
>
>
> ...
> }
>
> ________________________________
> Get the MapQuest Toolbar, Maps, Traffic, Directions & More!
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Geekos-devel mailing list
> Gee...@li...
> https://lists.sourceforge.net/lists/listinfo/geekos-devel
>
>
|