[mammoth] Return ErrorOr when creating a process
This commit is contained in:
parent
0ec2fa3e76
commit
1f7a15eed4
4 changed files with 12 additions and 6 deletions
|
|
@ -17,8 +17,11 @@ uint64_t main(uint64_t port_cap) {
|
|||
uint64_t vaddr;
|
||||
check(ZAddressSpaceMap(gSelfVmasCap, 0, gBootDenaliVmmoCap, &vaddr));
|
||||
|
||||
Channel local;
|
||||
check(SpawnProcessFromElfRegion(vaddr, local));
|
||||
auto local_or = SpawnProcessFromElfRegion(vaddr);
|
||||
if (!local_or) {
|
||||
check(local_or.error());
|
||||
}
|
||||
Channel local = local_or.value();
|
||||
|
||||
DenaliClient client(local);
|
||||
GptReader reader(client);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue