Changes

Jump to navigation Jump to search
2,825 bytes added ,  00:38, 14 October 2017
no edit summary
Line 444: Line 444:     
Setting nano=0 means "yield thread".
 
Setting nano=0 means "yield thread".
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) X1 || u64 || <code>Nano</code>
 +
|-
 +
| (Out) W0 || [[#Result]] || <code>Ret</code>
 +
|}
 +
</div>
    
== svcGetThreadPriority ==
 
== svcGetThreadPriority ==
 
'''Description:''' Get priority of provided thread handle.
 
'''Description:''' Get priority of provided thread handle.
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) W1|| u64 || <code>Handle</code>
 +
|-
 +
| (Out) W0 || [[#Result]] || <code>Ret</code>
 +
|-
 +
| (Out) W1 || u64 || <code>Priority</code>
 +
|}
 +
</div>
    
== svcSetThreadPriority ==
 
== svcSetThreadPriority ==
Line 452: Line 476:     
Priority is a number 0-0x3F. Lower value means higher priority.
 
Priority is a number 0-0x3F. Lower value means higher priority.
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) W0|| u64 || <code>Handle</code>
 +
|-
 +
| (In) W1|| u64 || <code>Priority</code>
 +
|-
 +
| (Out) W0 || [[#Result]] || <code>Ret</code>
 +
|}
 +
</div>
    
== svcGetThreadCoreMask ==
 
== svcGetThreadCoreMask ==
 
'''Description:''' Get affinity mask of provided thread handle.
 
'''Description:''' Get affinity mask of provided thread handle.
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) W2 || u64 || <code>Handle</code>
 +
|-
 +
| (Out) W0 || [[#Result]] || <code>Ret</code>
 +
|-
 +
| (Out) W1 || u64 || <code>Out</code>
 +
|-
 +
| (Out) X2 || u64 || <code>Out</code>
 +
|}
 +
</div>
    
== svcSetThreadCoreMask ==
 
== svcSetThreadCoreMask ==
 
'''Description:''' Set affinity mask of provided thread handle.
 
'''Description:''' Set affinity mask of provided thread handle.
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) W0 || u64 || <code>Handle</code>
 +
|-
 +
| (In) W1 || u64 || <code>In</code>
 +
|-
 +
| (In) X2 || u64 || <code>In</code>
 +
|-
 +
| (Out) W0 || [[#Result]] || <code>Ret</code>
 +
|}
 +
</div>
    
== svcGetCurrentProcessorNumber ==
 
== svcGetCurrentProcessorNumber ==
Line 479: Line 546:     
Increases reference count for the KSharedMemory object. Thus in order to release the memory associated with the object, all handles to it must be closed and all mappings must be unmapped.
 
Increases reference count for the KSharedMemory object. Thus in order to release the memory associated with the object, all handles to it must be closed and all mappings must be unmapped.
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) W0 || u64 || <code>Mem Block Handle</code>
 +
|-
 +
| (In) X1 || u64 || <code>Addr</code>
 +
|-
 +
| (In) X2 || u64 || <code>Size</code>
 +
|-
 +
| (In) W3 || u64 || <code>Permissions</code>
 +
|-
 +
| (Out) W0 || [[#Result]] || <code>Ret</code>
 +
|}
 +
</div>
    
== svcCreateTransferMemory ==
 
== svcCreateTransferMemory ==
Line 486: Line 570:     
Closing all handles automatically causes the bit0 in [[#MemoryAttribute]] to clear, and the permission to reset.
 
Closing all handles automatically causes the bit0 in [[#MemoryAttribute]] to clear, and the permission to reset.
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) X1 || u64 || <code>Addr</code>
 +
|-
 +
| (In) X2 || u64 || <code>Size</code>
 +
|-
 +
| (In) W3 || u64 || <code>Permissions</code>
 +
|-
 +
| (Out) W0 || [[#Result]] || <code>Ret</code>
 +
|-
 +
| (Out) W1 || u64 || <code>Handle</code>
 +
|}
 +
</div>
    
== svcWaitSynchronization ==
 
== svcWaitSynchronization ==
Line 491: Line 592:     
Does not accept 0xFFFF8001 or 0xFFFF8000 as handles.
 
Does not accept 0xFFFF8001 or 0xFFFF8000 as handles.
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) X1 || u64 || <code>Handles Pointer</code>
 +
|-
 +
| (In) W2 || u64 || <code>Number of Handles</code>
 +
|-
 +
| (In) X3 || u64 || <code>Timeout</code>
 +
|-
 +
| (Out) W0 || [[#Result]] || <code>Ret</code>
 +
|-
 +
| (Out) W1 || u64 || <code>Handle Index</code>
 +
|}
 +
</div>
    
== svcSendSyncRequestWithUserBuffer ==
 
== svcSendSyncRequestWithUserBuffer ==
 
Size must be 0x1000-aligned.
 
Size must be 0x1000-aligned.
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) X0 || u64 || <code>Command Buffer Pointer</code>
 +
|-
 +
| (In) X1 || u64 || <code>Size</code>
 +
|-
 +
| (In) X2 || u64 || <code>Handle</code>
 +
|-
 +
| (Out) W0 || [[#Result]] || <code>Ret</code>
 +
|}
 +
</div>
    
== svcBreak ==
 
== svcBreak ==
 
When used on retail where inx0 bit31 is clear, the system will throw a [[Error_codes|fatal-error]]. Otherwise when bit31 is set, it will return 0.
 
When used on retail where inx0 bit31 is clear, the system will throw a [[Error_codes|fatal-error]]. Otherwise when bit31 is set, it will return 0.
 +
 +
<div style="display: inline-block;">
 +
{| class="wikitable" border="1"
 +
|-
 +
! Argument || Type || Name
 +
|-
 +
| (In) X0 || u64 ||
 +
|-
 +
| (In) X1 || u64 ||
 +
|-
 +
| (In) X2 || u64 || <code>Info</code>
 +
|-
 +
| (Out) ? || ? || <code>?</code>
 +
|}
 +
</div>
    
== svcGetInfo ==
 
== svcGetInfo ==
48

edits

Navigation menu