diff options
| author | Ada Christine <adachristine18@gmail.com> | 2022-01-13 14:23:20 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2022-01-13 14:23:20 +0000 |
| commit | 7b45eb843e968b787b1ec367b41c98585227dbcd (patch) | |
| tree | bc1f0c59c1e9d9e56351ccc2868538f602cd98f1 /kc/core/cpu.h | |
| parent | 6dfbb3850ac99945de12251f99867c1edff9036c (diff) | |
msr_read() and msr_write(), rudimentary syscall thing
Diffstat (limited to 'kc/core/cpu.h')
| -rw-r--r-- | kc/core/cpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kc/core/cpu.h b/kc/core/cpu.h index 56a4073..2d5e134 100644 --- a/kc/core/cpu.h +++ b/kc/core/cpu.h @@ -1,5 +1,7 @@ #pragma once +#include <stdint.h> + void cpu_init(void); void isr_install(int vec, void (*isr)(void), int ist, int trap); @@ -7,3 +9,7 @@ void ist_install(int ist, void *stack); void int_enable(void); void int_disable(void); + +uint64_t msr_read(uint32_t index); +void msr_write(uint32_t index, uint64_t value); + |
