mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-22 05:15:51 +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
|
@ -70,16 +70,11 @@ void Kernel::controlMemory() {
|
|||
}
|
||||
|
||||
// Result QueryMemory(MemoryInfo* memInfo, PageInfo* pageInfo, u32 addr)
|
||||
// TODO: Is this SVC supposed to write to memory or...?
|
||||
void Kernel::queryMemory() {
|
||||
const u32 memInfo = regs[0];
|
||||
const u32 pageInfo = regs[1];
|
||||
const u32 addr = regs[2];
|
||||
|
||||
if (!isAligned(addr)) [[unlikely]] {
|
||||
Helpers::panic("QueryMemory: Address not page aligned\n");
|
||||
}
|
||||
|
||||
printf("QueryMemory(mem info pointer = %08X, page info pointer = %08X, addr = %08X)\n", memInfo, pageInfo, addr);
|
||||
|
||||
const auto info = mem.queryMemory(addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue