From 8251da342161767fe203627223ccd4a7026701c6 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Fri, 4 Sep 2026 11:31:40 -0400 Subject: initial commit. working on tasking --- arch/x86_64/x86_64.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 arch/x86_64/x86_64.h (limited to 'arch/x86_64/x86_64.h') diff --git a/arch/x86_64/x86_64.h b/arch/x86_64/x86_64.h new file mode 100644 index 0000000..9a0311b --- /dev/null +++ b/arch/x86_64/x86_64.h @@ -0,0 +1,20 @@ +#ifndef _JOVE_x86_64_H +#define _JOVE_x86_64_H 1 + +#include + +struct cpu_state +{ + uint64_t r15, r14, r13, r12, r11, r10, r9, r8; + uint64_t rbp, rdi, rsi, rdx, rcx, rbx, rax; +}; + +struct cpu_context +{ + struct cpu_state state; + uint64_t rsp, rip; +}; + +void print_state(struct cpu_state *state); + +#endif -- cgit v1.2.3