Return Z_OK on all syscall paths

This commit is contained in:
Drew Galbraith 2023-06-07 07:15:25 -07:00
parent 55340e2917
commit b79ec07636
1 changed files with 2 additions and 0 deletions

View File

@ -142,6 +142,7 @@ uint64_t AddressSpaceMap(ZAddressSpaceMapReq* req, ZAddressSpaceMapResp* resp) {
} else { } else {
resp->vaddr = vmas->MapInMemoryObject(vmmo); resp->vaddr = vmas->MapInMemoryObject(vmmo);
} }
return Z_OK;
} }
uint64_t MemoryObjectCreate(ZMemoryObjectCreateReq* req, uint64_t MemoryObjectCreate(ZMemoryObjectCreateReq* req,
@ -183,6 +184,7 @@ extern "C" uint64_t SyscallHandler(uint64_t call_id, void* req, void* resp) {
reinterpret_cast<ZMemoryObjectCreateResp*>(resp)); reinterpret_cast<ZMemoryObjectCreateResp*>(resp));
case Z_DEBUG_PRINT: case Z_DEBUG_PRINT:
dbgln("[Debug] %s", req); dbgln("[Debug] %s", req);
return Z_OK;
break; break;
default: default:
panic("Unhandled syscall number: %x", call_id); panic("Unhandled syscall number: %x", call_id);