SVC: Difference between revisions
Link resetsignal to doc. |
We were lied to. Based on 5.0.0 info. |
||
Line 184: | Line 184: | ||
| 0x53 || [[#svcCreateInterruptEvent]] || X1=irq_num, W2=flag || W0=result, W1=handle | | 0x53 || [[#svcCreateInterruptEvent]] || X1=irq_num, W2=flag || W0=result, W1=handle | ||
|- | |- | ||
| 0x54 || [[#svcQueryPhysicalAddress]] || X1=addr || W0=result, X1=physaddr, X2= | | 0x54 || [[#svcQueryPhysicalAddress]] || X1=addr || W0=result, X1=physaddr, X2=baseaddr, X3=size | ||
|- | |- | ||
| 0x55 || [[#svcQueryIoMapping]] || X1=physaddr, X2=size | | 0x55 || [[#svcQueryIoMapping]] || X1=physaddr, X2=size | ||
Line 1,336: | Line 1,336: | ||
| (Out) X1 || u64 || PhysAddr | | (Out) X1 || u64 || PhysAddr | ||
|- | |- | ||
| (Out) X2 || u64 || | | (Out) X2 || u64 || BaseAddr | ||
|- | |- | ||
| (Out) X3 || u64 || Size | | (Out) X3 || u64 || Size | ||
|} | |} | ||
</div> | </div> | ||
'''Description:''' Query the physical address of a virtual address. Will always fetch the lowest page-aligned mapping that contains the provided physical address. | |||
The returned BaseAddr is the virtual address of that page-aligned mapping, while PhysAddr is the physical address of that page. Size is the amount of continuous physical memory in that mapping. | |||
== svcQueryIoMapping == | == svcQueryIoMapping == |