diff options
author | Marvin Borner | 2020-04-28 23:33:34 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-28 23:33:34 +0200 |
commit | 34c752f6fe4f71169172f1b3e46b1eddf69eba6e (patch) | |
tree | c9acf3f6cac1791861d3506c4fe6f2c1dfedeae5 /src/userspace | |
parent | 5f8b5ce7efb7738eaebad43f9648975788ae19ff (diff) |
Added support for multiple user applications
Diffstat (limited to 'src/userspace')
-rw-r--r-- | src/userspace/libc/syscall.h | 12 | ||||
-rw-r--r-- | src/userspace/linker.ld | 2 | ||||
-rw-r--r-- | src/userspace/programs/init.c | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/userspace/libc/syscall.h b/src/userspace/libc/syscall.h index 9f5bdb0..61ffecc 100644 --- a/src/userspace/libc/syscall.h +++ b/src/userspace/libc/syscall.h @@ -70,17 +70,11 @@ */ DECL_SYSCALL0(halt); -DECL_SYSCALL1(write, const char *); +DECL_SYSCALL1(putch, const char *); -DECL_SYSCALL1(read, const char *); +DECL_SYSCALL0(getch); -DECL_SYSCALL1(writec, char); - -DECL_SYSCALL0(readc); - -DECL_SYSCALL0(get_pointers); - -DECL_SYSCALL1(alloc, uint32_t); +DECL_SYSCALL1(malloc, uint32_t); DECL_SYSCALL1(free, uint32_t); diff --git a/src/userspace/linker.ld b/src/userspace/linker.ld index 8ede485..69018c4 100644 --- a/src/userspace/linker.ld +++ b/src/userspace/linker.ld @@ -1,4 +1,4 @@ -ENTRY(_start) +ENTRY(main) SECTIONS { .text 0x40000000: diff --git a/src/userspace/programs/init.c b/src/userspace/programs/init.c new file mode 100644 index 0000000..bf3c7f4 --- /dev/null +++ b/src/userspace/programs/init.c @@ -0,0 +1,6 @@ +void main() +{ + // TODO: Exec shell + while (1) { + }; +}
\ No newline at end of file |