mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
[Kernel] Implement GetThreadID, stub DuplicateHandle
This commit is contained in:
parent
0b2e22ca6d
commit
aef1520f17
5 changed files with 46 additions and 6 deletions
|
@ -90,6 +90,7 @@ class Kernel {
|
|||
void createEvent();
|
||||
void createThread();
|
||||
void controlMemory();
|
||||
void duplicateHandle();
|
||||
void mapMemoryBlock();
|
||||
void queryMemory();
|
||||
void getProcessInfo();
|
||||
|
@ -97,6 +98,7 @@ class Kernel {
|
|||
void getResourceLimitLimitValues();
|
||||
void getResourceLimitCurrentValues();
|
||||
void getSystemTick();
|
||||
void getThreadID();
|
||||
void sendSyncRequest();
|
||||
void svcCloseHandle();
|
||||
void connectToPort();
|
||||
|
|
|
@ -102,9 +102,11 @@ struct Thread {
|
|||
u32 initialSP; // Initial r13 value
|
||||
u32 entrypoint; // Initial r15 value
|
||||
u32 priority;
|
||||
u32 arg;
|
||||
s32 processorID;
|
||||
ThreadStatus status;
|
||||
Handle handle; // OS handle for this thread
|
||||
int index; // Index of the thread. 0 for the first thread, 1 for the second, and so on
|
||||
|
||||
// The waiting address for threads that are waiting on an AddressArbiter
|
||||
u32 waitingAddress;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue