SceSblSmschedProxy: Difference between revisions
CelesteBlue (talk | contribs) No edit summary |
CelesteBlue (talk | contribs) No edit summary |
||
Line 19: | Line 19: | ||
! Version !! Name !! World !! Visibility !! NID | ! Version !! Name !! World !! Visibility !! NID | ||
|- | |- | ||
| | | 0.931-3.60 || [[SceSblSmschedProxy#SceSblSmSchedProxyForKernel|SceSblSmSchedProxyForKernel]] || Non-secure || Kernel || 0x15F25C84 | ||
|} | |} | ||
Line 52: | Line 52: | ||
}; | }; | ||
enum class | enum class sk_cmd_index { | ||
SK_CMD_0xB01_INDEX = 0, | |||
SK_CMD_0xC01_INDEX = 1, | |||
SK_CMD_0xD01_INDEX = 2, | |||
SK_CMD_0xE01_INDEX = 3, | |||
SK_CMD_0xF01_INDEX = 4 | |||
}; | }; | ||
Line 117: | Line 117: | ||
// sm_self_paddr = Physical address of the buffer containing the result of sceKernelVARangeToPAVectorForDriver (req.output_buffer) | // sm_self_paddr = Physical address of the buffer containing the result of sceKernelVARangeToPAVectorForDriver (req.output_buffer) | ||
// num_pairs = number of (paddr, size) pairs in the buffer returned by sceKernelVARangeToPAVectorForDriver (ret_count) | // num_pairs = number of (paddr, size) pairs in the buffer returned by sceKernelVARangeToPAVectorForDriver (ret_count) | ||
int sceSblSmSchedProxyInvokeForKernel(int priority, void *sm_self_paddr, unsigned int num_pairs, sm_invoke_data_block_input *invoke_input, SceSblSmCommContext130 *ctx, | int sceSblSmSchedProxyInvokeForKernel(int priority, void *sm_self_paddr, unsigned int num_pairs, sm_invoke_data_block_input *invoke_input, SceSblSmCommContext130 *ctx, SceSmSchedRequestId *req_id); | ||
</source> | </source> | ||
Line 125: | Line 125: | ||
! Version !! NID | ! Version !! NID | ||
|- | |- | ||
| 0. | | 0.931-3.60 || 0xF35EFC1A | ||
|} | |} | ||
Executes [[SMC|smc 0x12E]] call. | Executes [[SMC|smc 0x12E]] call. | ||
<source lang="c">int sceSblSmSchedProxyWaitForKernel( | <source lang="c">int sceSblSmSchedProxyWaitForKernel(SceSmSchedRequestId req_id, status_handler* result);</source> | ||
=== sceSblSmSchedProxyGetStatusForKernel === | === sceSblSmSchedProxyGetStatusForKernel === | ||
Line 137: | Line 137: | ||
! Version !! NID | ! Version !! NID | ||
|- | |- | ||
| 0. | | 0.931-3.60 || 0x27EB92F1 | ||
|} | |} | ||
Executes [[SMC|smc 0x12F]] call. | Executes [[SMC|smc 0x12F]] call. | ||
<source lang="c">int sceSblSmSchedProxyGetStatusForKernel( | <source lang="c">int sceSblSmSchedProxyGetStatusForKernel(SceSmSchedRequestId req_id, status_handler* status);</source> | ||
=== sceSblSmSchedProxyKillForKernel === | === sceSblSmSchedProxyKillForKernel === | ||
Line 149: | Line 149: | ||
! Version !! NID | ! Version !! NID | ||
|- | |- | ||
| 0. | | 0.931-3.60 || 0xDE4EAC3C | ||
|} | |} | ||
Line 156: | Line 156: | ||
Executes [[SMC|smc 0x130]] call. | Executes [[SMC|smc 0x130]] call. | ||
<source lang="C">int sceSblSmSchedProxyKillForKernel( | <source lang="C">int sceSblSmSchedProxyKillForKernel(SceSmSchedRequestId req_id);</source> | ||
=== SceSblSmSchedProxyForKernel_984EC9D1 === | === SceSblSmSchedProxyForKernel_984EC9D1 === | ||
Line 196: | Line 196: | ||
Called by [[SceSblSsSmComm#sceSblSmCommCallFunc|sceSblSmCommCallFunc]]. | Called by [[SceSblSsSmComm#sceSblSmCommCallFunc|sceSblSmCommCallFunc]]. | ||
<source lang="c">int sceSblSmSchedProxyCallFuncForKernel( | <source lang="c">int sceSblSmSchedProxyCallFuncForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 mailval);</source> | ||
=== | === sceSblSmSchedProxyReadArm2CryForKernel === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 205: | Line 205: | ||
| 0.931-3.60 || 0xF70C04EC | | 0.931-3.60 || 0xF70C04EC | ||
|} | |} | ||
Executes [[SMC|smc 0x134]] call. | Executes [[SMC|smc 0x134]] call. | ||
<source lang="C">int | <source lang="C">int sceSblSmSchedProxyReadArm2CryForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 *pMailval);</source> | ||
=== | === sceSblSmSchedProxyWriteArm2CryForKernel === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Version !! NID | ! Version !! NID | ||
|- | |- | ||
| 3.60 || 0x3CE17233 | | 0.931-3.60 || 0x3CE17233 | ||
|} | |} | ||
Executes [[SMC|smc 0x135]] call. | Executes [[SMC|smc 0x135]] call. | ||
<source lang="C">int | <source lang="C">int sceSblSmSchedProxyWriteArm2CryForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 mailval);</source> | ||
=== sceSblSmSchedProxyWriteCry2ArmForKernel === | === sceSblSmSchedProxyWriteCry2ArmForKernel === | ||
Line 238: | Line 236: | ||
Used by [[SceSblAuthMgr]]. | Used by [[SceSblAuthMgr]]. | ||
<source lang="C">int sceSblSmSchedProxyWriteCry2ArmForKernel( | <source lang="C">int sceSblSmSchedProxyWriteCry2ArmForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 mailval);</source> | ||
=== sceSblSmSchedProxyReadCry2ArmForKernel === | === sceSblSmSchedProxyReadCry2ArmForKernel === | ||
Line 249: | Line 247: | ||
Temp name was sceSblSmSchedProxyGetStatusCodeF00DRegisterForKernel. | Temp name was sceSblSmSchedProxyGetStatusCodeF00DRegisterForKernel. | ||
Executes [[SMC|smc 0x137]] call. | Executes [[SMC|smc 0x137]] call. | ||
Line 256: | Line 252: | ||
Used by [[SceSblAuthMgr]]. | Used by [[SceSblAuthMgr]]. | ||
<source lang="C">int sceSblSmSchedProxyReadCry2ArmForKernel( | <source lang="C">int sceSblSmSchedProxyReadCry2ArmForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 *pMailval);</source> | ||
=== sceSblSmSchedProxyRegisterIntrHandlerForKernel === | === sceSblSmSchedProxyRegisterIntrHandlerForKernel === | ||
Line 273: | Line 269: | ||
<source lang="C"> | <source lang="C"> | ||
typedef int sceSblSmSchedProxyIntrHandler( | typedef int sceSblSmSchedProxyIntrHandler(SceSmSchedRequestId req_id, int mailbox_id, int arg1, int arg2, int arg3); | ||
int sceSblSmSchedProxyRegisterIntrHandlerForKernel( | int sceSblSmSchedProxyRegisterIntrHandlerForKernel(SceSmSchedRequestId req_id, int mailbox_id, sceSblSmSchedProxyIntrHandler *cb, int unk_unused); | ||
</source> | </source> | ||
Line 292: | Line 288: | ||
Called by [[SceSblAuthMgr]]. | Called by [[SceSblAuthMgr]]. | ||
<source lang="C">int sceSblSmSchedProxyReleaseIntrHandlerForKernel( | <source lang="C">int sceSblSmSchedProxyReleaseIntrHandlerForKernel(SceSmSchedRequestId req_id, int mailbox_id);</source> | ||
=== sceSblSmSchedProxyUninitializeForKernel === | === sceSblSmSchedProxyUninitializeForKernel === | ||
Line 308: | Line 304: | ||
<source lang="C">int sceSblSmSchedProxyUninitializeForKernel(void);</source> | <source lang="C">int sceSblSmSchedProxyUninitializeForKernel(void);</source> | ||
=== | === sceSblSmSchedProxyExecuteSKCommandForKernel === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Version !! NID | ! Version !! NID | ||
|- | |- | ||
| 3.60 || 0x7894B6F0 | | 0.931-3.60 || 0x7894B6F0 | ||
|} | |} | ||
Executes [[SMC|smc 0x13C]] call | Temp name was sceSblSmSchedProxyExecuteF00DCommandForKernel. | ||
Executes [[SMC|smc 0x13C]] call. | |||
<source lang="C">int | <source lang="C">int sceSblSmSchedProxyExecuteSKCommandForKernel(sk_cmd_index cmd_index, int unused1, int unused2, int unused3);</source> | ||
This function is called by two modules: | This function is called by two modules: | ||
[[SceSblSsMgr]] just before PSVita entering suspend mode: | [[SceSblSsMgr]] just before PSVita entering suspend mode: | ||
<source lang="C"> | <source lang="C">sceSblSmSchedProxyExecuteSKCommandForKernel(4, 0, 0, 0);</source> | ||
[[SceSdif]] at [[SceSdif#init|init]] (at PSVita boot and maybe called after PSVita resume): | [[SceSdif]] at [[SceSdif#init|init]] (at PSVita boot and maybe called after PSVita resume): | ||
<source lang="C"> | <source lang="C">sceSblSmSchedProxyExecuteSKCommandForKernel(3, 0, 0, 0);</source> | ||
[[Category:Modules]] | [[Category:Modules]] | ||
[[Category:Kernel]] | [[Category:Kernel]] |
Revision as of 01:23, 5 June 2020
Module
Known NIDs
Version | Name | World | Privilege | NID |
---|---|---|---|---|
1.69 | SceSblSmschedProxy | Non-secure | Kernel | 0xF3BC3013 |
3.60 | SceSblSmschedProxy | Non-secure | Kernel | 0x254B02B3 |
Libraries
Known NIDs
Version | Name | World | Visibility | NID |
---|---|---|---|---|
0.931-3.60 | SceSblSmSchedProxyForKernel | Non-secure | Kernel | 0x15F25C84 |
Types
typedef unsigned int SmOperationId; #define CRY_INTERRUPT_INDEX0 0 #define CRY_INTERRUPT_INDEX1 1 #define CRY_INTERRUPT_INDEX2 2 #define CRY_INTERRUPT_INDEX3 3 #define MAILBOX_ID1 1 #define MAILBOX_ID2 2 #define MAILBOX_ID3 3 enum SmStatus { SM_STATUS_1 = 0x1, SM_STATUS_2 = 0x2, SM_STATUS_EXIT = 0x3, SM_STATUS_4 = 0x4, SM_STATUS_5 = 0x5, SM_STATUS_6 = 0x6, SM_STATUS_7 = 0x7, SM_STATUS_8 = 0x8, SM_STATUS_9 = 0x9, SM_STATUS_A = 0xA, SM_STATUS_B = 0xB, SM_STATUS_C = 0xC, }; enum class sk_cmd_index { SK_CMD_0xB01_INDEX = 0, SK_CMD_0xC01_INDEX = 1, SK_CMD_0xD01_INDEX = 2, SK_CMD_0xE01_INDEX = 3, SK_CMD_0xF01_INDEX = 4 }; typedef struct SceSblSmschedCallFuncCommand { unsigned int size; unsigned int service_id; unsigned int response; unsigned int unk2; unsigned int padding[(0x40 - 0x10) / 4]; unsigned int data[0]; } SceSblSmschedCallFuncCommand; /* size = 0X40 + ... */ typedef struct status_handler { int status0; SmStatus status1; } status_handler;
SceSblSmSchedProxyForKernel
sceSblSmSchedProxyInitializeForKernel
Version | NID |
---|---|
0.931-3.60 | 0xA488D604 |
Calls module_start if cpuId is 0.
int sceSblSmSchedProxyInitializeForKernel(void);
sceSblSmSchedProxyInvokeForKernel
Temp name was sceSblSmSchedProxyCreateSmOperationForKernel.
Version | NID |
---|---|
0.931-3.60 | 0x1916509B |
Executes smc 0x12D call.
- priority - first smc arg
- sm_self_paddr - second smc arg
- num_pairs - third smc arg
typedef struct sm_invoke_data_block_input { int unk0; int unk4; int unk8; int unkC; } sm_invoke_data_block_input; // sm_self_paddr = Physical address of the buffer containing the result of sceKernelVARangeToPAVectorForDriver (req.output_buffer) // num_pairs = number of (paddr, size) pairs in the buffer returned by sceKernelVARangeToPAVectorForDriver (ret_count) int sceSblSmSchedProxyInvokeForKernel(int priority, void *sm_self_paddr, unsigned int num_pairs, sm_invoke_data_block_input *invoke_input, SceSblSmCommContext130 *ctx, SceSmSchedRequestId *req_id);
sceSblSmSchedProxyWaitForKernel
Version | NID |
---|---|
0.931-3.60 | 0xF35EFC1A |
Executes smc 0x12E call.
int sceSblSmSchedProxyWaitForKernel(SceSmSchedRequestId req_id, status_handler* result);
sceSblSmSchedProxyGetStatusForKernel
Version | NID |
---|---|
0.931-3.60 | 0x27EB92F1 |
Executes smc 0x12F call.
int sceSblSmSchedProxyGetStatusForKernel(SceSmSchedRequestId req_id, status_handler* status);
sceSblSmSchedProxyKillForKernel
Version | NID |
---|---|
0.931-3.60 | 0xDE4EAC3C |
Temp name was sceSblSmSchedProxyChangeF00DStatusForKernel.
Executes smc 0x130 call.
int sceSblSmSchedProxyKillForKernel(SceSmSchedRequestId req_id);
SceSblSmSchedProxyForKernel_984EC9D1
Version | NID |
---|---|
0.931-3.60 | 0x984EC9D1 |
Reserved function along with smc 0x131.
On FWs 0.931-3.60, does nothing and returns 0x800F0425.
SceSblSmSchedProxyForKernel_1DFC8624
Version | NID |
---|---|
0.931-3.60 | 0x1DFC8624 |
Reserved function along with smc 0x132.
On FWs 0.931-3.60, does nothing and returns 0x800F0425.
sceSblSmSchedProxyCallFuncForKernel
Version | NID |
---|---|
0.931-3.60 | 0x723B382F |
Temp name was sceSblSmSchedProxySetCommandF00DRegisterForKernel.
Executes smc 0x133 call.
Called by sceSblSmCommCallFunc.
int sceSblSmSchedProxyCallFuncForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 mailval);
sceSblSmSchedProxyReadArm2CryForKernel
Version | NID |
---|---|
0.931-3.60 | 0xF70C04EC |
Executes smc 0x134 call.
int sceSblSmSchedProxyReadArm2CryForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 *pMailval);
sceSblSmSchedProxyWriteArm2CryForKernel
Version | NID |
---|---|
0.931-3.60 | 0x3CE17233 |
Executes smc 0x135 call.
int sceSblSmSchedProxyWriteArm2CryForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 mailval);
sceSblSmSchedProxyWriteCry2ArmForKernel
Version | NID |
---|---|
0.931-3.60 | 0x15B0E4DF |
Temp name was sceSblSmSchedProxySetStatusCodeF00DRegisterForKernel.
Executes smc 0x136 call.
Used by SceSblAuthMgr.
int sceSblSmSchedProxyWriteCry2ArmForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 mailval);
sceSblSmSchedProxyReadCry2ArmForKernel
Version | NID |
---|---|
0.931-3.60 | 0x973A4A7D |
Temp name was sceSblSmSchedProxyGetStatusCodeF00DRegisterForKernel.
Executes smc 0x137 call.
Used by SceSblAuthMgr.
int sceSblSmSchedProxyReadCry2ArmForKernel(SceSmSchedRequestId req_id, int mailbox_id, SceUInt32 *pMailval);
sceSblSmSchedProxyRegisterIntrHandlerForKernel
Version | NID |
---|---|
0.931-3.60 | 0x8B84AC2A |
Temp name was sceSblSmSchedProxyEnableCry2ArmInterruptForKernel.
Executes smc 0x138 call.
Called by SceSblAuthMgr.
typedef int sceSblSmSchedProxyIntrHandler(SceSmSchedRequestId req_id, int mailbox_id, int arg1, int arg2, int arg3); int sceSblSmSchedProxyRegisterIntrHandlerForKernel(SceSmSchedRequestId req_id, int mailbox_id, sceSblSmSchedProxyIntrHandler *cb, int unk_unused);
sceSblSmSchedProxyReleaseIntrHandlerForKernel
Version | NID |
---|---|
0.931-3.60 | 0x85EDA5FC |
Temp name was sceSblSmSchedProxyDisableCry2ArmInterruptForKernel.
Executes smc 0x139 call.
Called by SceSblAuthMgr.
int sceSblSmSchedProxyReleaseIntrHandlerForKernel(SceSmSchedRequestId req_id, int mailbox_id);
sceSblSmSchedProxyUninitializeForKernel
Version | NID |
---|---|
0.931-3.60 | 0x33A3A1E2 |
Executes smc 0x13B call.
Only executes if cpuId is 0.
int sceSblSmSchedProxyUninitializeForKernel(void);
sceSblSmSchedProxyExecuteSKCommandForKernel
Version | NID |
---|---|
0.931-3.60 | 0x7894B6F0 |
Temp name was sceSblSmSchedProxyExecuteF00DCommandForKernel.
Executes smc 0x13C call.
int sceSblSmSchedProxyExecuteSKCommandForKernel(sk_cmd_index cmd_index, int unused1, int unused2, int unused3);
This function is called by two modules:
SceSblSsMgr just before PSVita entering suspend mode:
sceSblSmSchedProxyExecuteSKCommandForKernel(4, 0, 0, 0);
SceSdif at init (at PSVita boot and maybe called after PSVita resume):
sceSblSmSchedProxyExecuteSKCommandForKernel(3, 0, 0, 0);