rustubs::arch::x86_64

Module arch_regs

Source
Expand description

both Context64 and TrapFrame define architecture specific registers and combine into the full execution context of a thread. Context64 includes the callee saved registers plus FP state, and TrapFrame includes caller saved registers.

Structs§

  • the Context64 is part of the task struct; it’s saved and restored explicitly on context swap.
  • TrapFrame is saved and restored by the interrupt handler assembly code upon interrupt entry and exit.

Functions§

  • get the current stack pointer