SVC: Difference between revisions

No edit summary
Line 256: Line 256:
Source range gets reprotected to --- (it can no longer be accessed), and bit0 is set in [[#MemoryAttribute]].
Source range gets reprotected to --- (it can no longer be accessed), and bit0 is set in [[#MemoryAttribute]].


Destination range is enforced to be within a special region. Code can get the range of this region from [[#svcGetInfo]] id0=2,3.
If dstaddr >= LowerTreshold, the dst-range is enforced to be within the process' "MapRegion". Code can get the range of this region from [[#svcGetInfo]] id0=2,3.
 
In this case, the mapped memory will have state <code>0x482907</code>.
 
As long as (dstaddr+size) < LowerThreshold, then you can map anywhere but the mapped memory will have state <code>0x5C3C0B</code> instead.
 
LowerTreshold is 0x80000000 for 36-bit address spaces, and 0x40000000 for 32-bit ones.


== svcUnmapMemory ==
== svcUnmapMemory ==