#pragma once #include struct SavedContext { uint64_t cr2; uint64_t ds; uint64_t r15, r14, r13, r12, r11, r10, r9, r8, rsi, rdi, rbp, rdx, rcx, rbx, rax; uint64_t number; union { uint64_t error_code; uint64_t irq_number; }; uint64_t rip, cs, rflags, rsp, ss; };