Code: Select all
pop
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;
};