kernel: match calls to Register and Unregister

This commit is contained in:
Liam
2023-04-29 21:16:09 -04:00
parent fe57f39676
commit 1b5c87ab6a
9 changed files with 50 additions and 5 deletions

View File

@ -64,6 +64,9 @@ Result ServiceManager::RegisterService(std::string name, u32 max_sessions,
auto* port = Kernel::KPort::Create(kernel);
port->Initialize(ServerSessionCountMax, false, 0);
// Register the port.
Kernel::KPort::Register(kernel, port);
service_ports.emplace(name, port);
registered_services.emplace(name, handler);
if (deferral_event) {