summaryrefslogtreecommitdiff
path: root/userspace/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/syscalls.c')
-rw-r--r--userspace/syscalls.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/userspace/syscalls.c b/userspace/syscalls.c
index f92541c..b514eab 100644
--- a/userspace/syscalls.c
+++ b/userspace/syscalls.c
@@ -13,9 +13,11 @@ easywrite(char *c);
void syscalls_init()
{
preread=0;
- alloc=0xff0000;
+ alloc=0x500000;
}
+//
+
int close(int file)
{
// easywrite("syscall: close\n");
@@ -43,8 +45,6 @@ int lseek(int file, int ptr, int dir)
return preread;
}
-
-
int read(int file, char *ptr, int len)
{
int ebx; // will hold return value;
@@ -158,7 +158,6 @@ caddr_t sbrk(int incr)
return (caddr_t) prev_heap_end;
*/
}
-
//
// helpers