aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/syscall.h
diff options
context:
space:
mode:
authorMarvin Borner2020-04-28 20:59:57 +0200
committerMarvin Borner2020-04-28 20:59:57 +0200
commit5f8b5ce7efb7738eaebad43f9648975788ae19ff (patch)
treeab8fc4d4baa4adb99dc90461df689650acf34cef /src/kernel/syscall/syscall.h
parentbfe16de4be67565f1a1e7b1331fcbe3aedf9c54e (diff)
Fixed userspace entering...
Many other fixes too, but I won't mention them because I don't want to :)
Diffstat (limited to 'src/kernel/syscall/syscall.h')
-rw-r--r--src/kernel/syscall/syscall.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/kernel/syscall/syscall.h b/src/kernel/syscall/syscall.h
index 229cf04..b2bdc6d 100644
--- a/src/kernel/syscall/syscall.h
+++ b/src/kernel/syscall/syscall.h
@@ -1,21 +1,17 @@
#ifndef MELVIX_SYSCALL_H
#define MELVIX_SYSCALL_H
+#include <stdint.h>
+
extern void idt_syscall();
void syscalls_install();
-uint32_t sys_write(char *buf);
-
-uint32_t sys_writec(char ch);
-
-uint32_t sys_read();
-
-uint32_t sys_readc(char *ch);
+uint32_t sys_putch(char ch);
-uint32_t sys_get_pointers();
+uint32_t sys_getch();
-uint32_t sys_alloc(uint32_t count);
+uint32_t sys_malloc(uint32_t count);
uint32_t sys_free(uint32_t ptr);