Use sys_vm_memory_map plus add default value for sys_allocate (#2560)

for different memory map(unconfirmed) also handle default action.
Fixes unknown syscall 313 error
Issue 2510
This commit is contained in:
Inviuz 2017-03-21 14:02:00 +01:00 committed by Ivan
parent 5785ebb384
commit c729d6d65a
5 changed files with 12 additions and 1 deletions

View file

@ -12,6 +12,7 @@ error_code sys_memory_allocate(u32 size, u64 flags, vm::ptr<u32> alloc_addr)
// Check allocation size
switch (flags)
{
case 0: //handle "default" value, issue 2510
case SYS_MEMORY_PAGE_SIZE_1M:
{
if (size % 0x100000)