diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 11:31:40 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 11:31:40 -0400 |
| commit | 8251da342161767fe203627223ccd4a7026701c6 (patch) | |
| tree | af2db0f11b0ea8ad35f88663a855bab39a80f679 /arch/x86_64/x86_64.c | |
| download | jove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.gz jove-kernel-8251da342161767fe203627223ccd4a7026701c6.tar.bz2 jove-kernel-8251da342161767fe203627223ccd4a7026701c6.zip | |
initial commit. working on tasking
Diffstat (limited to 'arch/x86_64/x86_64.c')
| -rw-r--r-- | arch/x86_64/x86_64.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/x86_64/x86_64.c b/arch/x86_64/x86_64.c new file mode 100644 index 0000000..a478ce1 --- /dev/null +++ b/arch/x86_64/x86_64.c @@ -0,0 +1,13 @@ +#include "x86_64.h" +#include "lib/printf.h" + +void +print_state(struct cpu_state *state) +{ + kprintf("RAX: %p | RBX: %p | RCX: %p\n", state->rax, state->rbx, state->rcx); + kprintf("RDX: %p | RSI: %p | RDI: %p\n", state->rdx, state->rsi, state->rdi); + kprintf("RBP: %p\n", state->rbp); + kprintf("R8 : %p | R9 : %p | R10: %p\n", state->r8, state->r9, state->r10); + kprintf("R11: %p | R12: %p | R13: %p\n", state->r11, state->r12, state->r13); + kprintf("R14: %p | R15: %p\n", state->r14, state->r15); +} |
