Page 1 of 1

Reloading ESP...

Posted: Thu Jul 03, 2003 11:00 pm
by EKP
Hi.

My bootloader puts me into 32-bit mode. After that i set up my stack since I use it. After that - I set up my own GDT. Do I need to reload ESP after that again?

Thanks!!!

RE:Reloading ESP...

Posted: Fri Jul 04, 2003 11:00 pm
by Anton
How can you setup the stack, before setting up GDT, since the stack descriptor should be located in the GDT.
Anton.

RE:Reloading ESP...

Posted: Fri Jul 04, 2003 11:00 pm
by Jamethiel
You may not need to reload ESP (depending on how your memory is laid out), but you probably want to reload SS.

--Jamethiel