forked from Bananymous/banan-os
Kernel: Add basic fixed width allocator for userspace
We have to move process stacks to the general heap and maybe map kernel to higher half.
This commit is contained in:
@@ -68,6 +68,12 @@ long syscall(long syscall, ...)
|
||||
ret = Kernel::syscall(SYS_OPEN, path, oflags);
|
||||
break;
|
||||
}
|
||||
case SYS_ALLOC:
|
||||
{
|
||||
size_t bytes = va_arg(args, size_t);
|
||||
ret = Kernel::syscall(SYS_ALLOC, bytes);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
puts("LibC: Unhandeled syscall");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user