diff options
author | Anton Kling <anton@kling.gg> | 2024-02-07 11:36:21 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-02-07 22:25:47 +0100 |
commit | 35958c8c6b600482f68fef08ac26547b5655e987 (patch) | |
tree | a3329136adc1b92885c60462e7dd74c98eaa0953 /kernel/includes | |
parent | b7fa1457727338416499d1b0144f1042a6878a97 (diff) |
A lot of small changes
Diffstat (limited to 'kernel/includes')
-rw-r--r-- | kernel/includes/mmu.h | 1 | ||||
-rw-r--r-- | kernel/includes/syscalls.h | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/kernel/includes/mmu.h b/kernel/includes/mmu.h index 8990bdf..49b4886 100644 --- a/kernel/includes/mmu.h +++ b/kernel/includes/mmu.h @@ -44,6 +44,7 @@ void *mmu_map_frames(void *ptr, size_t s); void mmu_map_physical(void *dst, PageDirectory *d, void *physical, size_t length); void mmu_free_pages(void *a, u32 n); +void *mmu_map_user_frames(void *const ptr, size_t s); void flush_tlb(void); void paging_init(u64 memsize); diff --git a/kernel/includes/syscalls.h b/kernel/includes/syscalls.h index cdf4f5a..ee3e417 100644 --- a/kernel/includes/syscalls.h +++ b/kernel/includes/syscalls.h @@ -7,10 +7,17 @@ #include <typedefs.h> #include <types.h> +void syscall_outw(u16 port, u16 word); +u32 syscall_inl(u16 port); +void syscall_outl(u16 port, u32 l); + int syscall_ipc_register_endpoint(u32 endpoint); int syscall_ipc_read(u8 *buffer, u32 length, u32 *sender_pid); int syscall_ipc_write(int ipc_id, u8 *buffer, u32 length); int syscall_ipc_write_to_process(int pid, u8 *buffer, u32 length); +u32 syscall_map_frames(u32 address, u32 size); +u32 syscall_virtual_to_physical(u32 virtual); +int syscall_install_irq(void (*irq_handler)(), u8 irq); typedef struct SYS_ACCEPT_PARAMS { int socket; |