apio
f1a7138568
IT ACTUALLY WORKS NOW. Why wasn't it working? Oh, because I was not setting already present page tables's permissions to user mode. Just a little bug. THAT I SPENT DAYS TRYING TO FIND Anyways, it works now. Such a relief...
14 lines
298 B
C
14 lines
298 B
C
#pragma once
|
|
#include <stdint.h>
|
|
|
|
struct Context
|
|
{
|
|
uint64_t cr2, 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;
|
|
}; |