mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
kernel/svc: Correct SVC instruction values for svcMapPhysicalMemory and svcUnmapPhysicalMemory
0x2A corresponds to svcFlushEntireDataCache, while 0x2B corresponds to svcFlushDataCache.
This commit is contained in:
parent
40bccd7838
commit
69a98dc0cb
@ -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);
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user