kernel/svc: Correct SVC instruction values for svcMapPhysicalMemory and svcUnmapPhysicalMemory

0x2A corresponds to svcFlushEntireDataCache, while 0x2B corresponds to
svcFlushDataCache.
This commit is contained in:
Lioncash 2018-12-06 23:56:41 -05:00 committed by fincs
parent 40bccd7838
commit 69a98dc0cb
2 changed files with 4 additions and 4 deletions

View File

@ -537,7 +537,7 @@ Result svcGetInfo(u64* out, u64 id0, Handle handle, u64 id1);
/**
* @brief Maps new heap memory at the desired address. [3.0.0+]
* @return Result code.
* @note Syscall number 0x2A.
* @note Syscall number 0x2C.
* @warning This is a privileged syscall. Use \ref envIsSyscallHinted to check if it is available.
*/
Result svcMapPhysicalMemory(void *address, u64 size);
@ -545,7 +545,7 @@ Result svcMapPhysicalMemory(void *address, u64 size);
/**
* @brief Undoes the effects of \ref svcMapPhysicalMemory. [3.0.0+]
* @return Result code.
* @note Syscall number 0x2B.
* @note Syscall number 0x2D.
* @warning This is a privileged syscall. Use \ref envIsSyscallHinted to check if it is available.
*/
Result svcUnmapPhysicalMemory(void *address, u64 size);

View File

@ -249,12 +249,12 @@ SVC_BEGIN svcGetInfo
SVC_END
SVC_BEGIN svcMapPhysicalMemory
svc 0x2A
svc 0x2C
ret
SVC_END
SVC_BEGIN svcUnmapPhysicalMemory
svc 0x2B
svc 0x2D
ret
SVC_END