Reloading ESP...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
EKP

Reloading ESP...

Post 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!!!
Anton

RE:Reloading ESP...

Post by Anton »

How can you setup the stack, before setting up GDT, since the stack descriptor should be located in the GDT.
Anton.
Jamethiel

RE:Reloading ESP...

Post 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
Post Reply