[mammoth] Update EndpointServer to have move-only semantics.
This commit is contained in:
parent
16c30d12fb
commit
2e89aee5a3
8 changed files with 40 additions and 29 deletions
|
|
@ -12,18 +12,18 @@ uint64_t main(uint64_t port_cap) {
|
|||
dbgln("Yellowstone Initializing.");
|
||||
check(ParseInitPort(port_cap));
|
||||
|
||||
ASSIGN_OR_RETURN(YellowstoneServer server, YellowstoneServer::Create());
|
||||
Thread server_thread = server.RunServer();
|
||||
Thread registration_thread = server.RunRegistration();
|
||||
ASSIGN_OR_RETURN(auto server, YellowstoneServer::Create());
|
||||
Thread server_thread = server->RunServer();
|
||||
Thread registration_thread = server->RunRegistration();
|
||||
DumpPciEDevices();
|
||||
|
||||
uint64_t vaddr;
|
||||
check(ZAddressSpaceMap(gSelfVmasCap, 0, gBootDenaliVmmoCap, &vaddr));
|
||||
ASSIGN_OR_RETURN(EndpointClient client, server.GetServerClient());
|
||||
ASSIGN_OR_RETURN(EndpointClient client, server->GetServerClient());
|
||||
check(SpawnProcessFromElfRegion(vaddr, client));
|
||||
|
||||
check(ZAddressSpaceMap(gSelfVmasCap, 0, gBootVictoriaFallsVmmoCap, &vaddr));
|
||||
ASSIGN_OR_RETURN(client, server.GetServerClient());
|
||||
ASSIGN_OR_RETURN(client, server->GetServerClient());
|
||||
check(SpawnProcessFromElfRegion(vaddr, client));
|
||||
|
||||
check(server_thread.Join());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue