Another quick question about iretd
Posted: Fri Oct 02, 2020 10:39 pm
What is the order of iretd?
Code: Select all
pop
The Place to Start for Operating System Developers
https://f.osdev.org/
Code: Select all
pop
Code: Select all
struct InterruptContext
{
...
// iret frame
uint32_t eip;
uint32_t cs;
uint32_t eflags;
// These are only saved/restored when crossing privilege levels
uint32_t esp;
uint32_t ss;
};
Code: Select all
struct InterruptContext
{
...
// iret frame
uint64_t rip;
uint64_t cs;
uint64_t rflags;
// These are always valid (different behaviour than 32 bits mode)
uint64_t rsp;
uint64_t ss;
};