iret and stack?
iret and stack?
What do I need to put on the stack so that an IRET instruction will jump to a given location? I'm trying to do a context switch type deal by "returning" to a code entry point in an ISR.
Re:iret and stack?
Don't hesitate to consult reference before asking.
http://nasm.sourceforge.net/doc/html/nasmdocb.html#section-B.4.127
http://nasm.sourceforge.net/doc/html/nasmdocb.html#section-B.4.127
Re:iret and stack?
Ehm.. IA-32 Intel Architecture Software Developers Manual, volume 3, the Holy Bibble of PC OS development, tells you everything about interrupt/trap management you ever wanted (and didn't want) to know. Available (some where around the web) as a PDF.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:iret and stack?
btw, you may want to get a look at the FAQ which gives you hints about performing a software task switch by simply swapping stacks.