mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
Started work on services
This commit is contained in:
parent
3259c5c7a6
commit
208c18356b
9 changed files with 169 additions and 18 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue