diff options
author | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
commit | 4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch) | |
tree | 80f156b7940d9d19971395f335530170c69516c7 /cpu/io.h |
Move everything into a new repo.
Diffstat (limited to 'cpu/io.h')
-rw-r--r-- | cpu/io.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cpu/io.h b/cpu/io.h new file mode 100644 index 0000000..9c33b66 --- /dev/null +++ b/cpu/io.h @@ -0,0 +1,11 @@ +#include <stdint.h> + +__attribute__((no_caller_saved_registers)) extern void outsw(uint16_t, + uint32_t); +__attribute__((no_caller_saved_registers)) extern void outb(uint16_t, uint16_t); +__attribute__((no_caller_saved_registers)) extern uint16_t inb(uint16_t); +__attribute__((no_caller_saved_registers)) extern void +rep_outsw(uint16_t count, uint16_t port, volatile void *addy); +__attribute__((no_caller_saved_registers)) extern void +rep_insw(uint16_t count, uint16_t port, volatile void *addy); +extern void jump_usermode(void (*address)(), uint32_t stack_pointer); |