diff options
| author | Miguel <m.i@gmx.at> | 2018-08-17 21:41:21 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-17 21:41:21 +0200 |
| commit | c15925a24efe14f437d8a2699500241a58fdc8f9 (patch) | |
| tree | c0db3a7d2a4f857324735df35e9cc1f0539c5f24 /kernel/x86.h | |
| parent | 6fd78c2ff950310d8372ec0353553cc4a5a43e72 (diff) | |
cleanup and working on fifo pipes
Diffstat (limited to 'kernel/x86.h')
| -rw-r--r-- | kernel/x86.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/kernel/x86.h b/kernel/x86.h index 2cd9e8e..b634722 100644 --- a/kernel/x86.h +++ b/kernel/x86.h @@ -5,25 +5,30 @@ // http://wiki.osdev.org/Interrupt_Service_Routines -//void sleep(int i); // TODO : Real sleep! - -void x86_outb(int port, uint8_t data); -uint8_t x86_inb(int port); -void x86_outw(int port, uint16_t data); -uint16_t x86_inw(int port); -void x86_outl(int port, uint32_t data); -uint32_t x86_inl(int port); +// TODO : Real sleep()! + +void x86_outb(uint32_t port, uint8_t data); +uint8_t x86_inb(uint32_t port); + +void x86_outw(uint32_t port, uint16_t data); +uint16_t x86_inw(uint32_t port); + +void x86_outl(uint32_t port, uint32_t data); +uint32_t x86_inl(uint32_t port); + void x86_set_pdbr(uint32_t addr); void x86_paging_enable(); void x86_flush_tlb(uint32_t addr); + void x86_int_enable(); void x86_int_disable(); + uint32_t x86_get_cr0(); uint32_t x86_get_cr1(); uint32_t x86_get_cr2(); uint32_t x86_get_cr3(); uint32_t x86_get_cr4(); + uint8_t x86_xchg(uint8_t *addr, uint8_t val); -void sleep(int i); #endif |
