Started work on services

This commit is contained in:
wheremyfoodat 2022-09-17 19:51:30 +03:00
parent 3259c5c7a6
commit 208c18356b
9 changed files with 169 additions and 18 deletions

View file

@ -59,6 +59,7 @@ void Kernel::reset() {
}
objects.clear();
portHandles.clear();
serviceManager.reset();
// Allocate handle #0 to a dummy object and make a main process object
makeObject(KernelObjectType::Dummy);
@ -68,6 +69,12 @@ void Kernel::reset() {
makePort("srv:");
}
// Get pointer to thread-local storage
// TODO: Every thread should have its own TLS. We need to adjust for this when we add threads
u32 Kernel::getTLSPointer() {
return VirtualAddrs::TLSBase;
}
// Result CreateAddressArbiter(Handle* arbiter)
void Kernel::createAddressArbiter() {
printf("Stubbed call to CreateAddressArbiter. Handle address: %08X\n", regs[0]);