Kernel/LibC: userspace malloc now uses mmap to get memory

We could remove syscalls to allocate more memory. This was not
something the kernel should have done.
This commit is contained in:
Bananymous
2023-09-23 02:26:23 +03:00
parent af4af1cae9
commit 6bb2c80bdd
6 changed files with 225 additions and 45 deletions

View File

@@ -68,12 +68,6 @@ namespace Kernel
case SYS_OPENAT:
ret = Process::current().sys_openat((int)arg1, (const char*)arg2, (int)arg3, (mode_t)arg4);
break;
case SYS_ALLOC:
ret = Process::current().sys_alloc((size_t)arg1);
break;
case SYS_FREE:
ret = Process::current().sys_free((void*)arg1);
break;
case SYS_SEEK:
ret = Process::current().sys_seek((int)arg1, (long)arg2, (int)arg3);
break;