Skip to content

Commit 31f2574

Browse files
authored
Merge pull request #351 from GrayJack/update/init2
refactor: Update `SceInit` stub with the discovered names for functions
2 parents 672ce6e + 727793b commit 31f2574

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/kernel/InitForKernel.S

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
IMPORT_FUNC "InitForKernel",0x2C6E9FE9,sceKernelGetChunk
1616
#endif
1717
#ifdef F_InitForKernel_0004
18-
IMPORT_FUNC "InitForKernel",0x33D30F49,InitForKernel_33D30F49
18+
IMPORT_FUNC "InitForKernel",0x33D30F49,sceKernelShowIntrHandlerInfo
1919
#endif
2020
#ifdef F_InitForKernel_0005
2121
IMPORT_FUNC_WITH_ALIAS "InitForKernel",0x7233B5BC,sceKernelApplicationType,sceKernelInitKeyConfig
@@ -24,17 +24,17 @@
2424
IMPORT_FUNC "InitForKernel",0x7A2333AD,sceKernelInitApitype
2525
#endif
2626
#ifdef F_InitForKernel_0007
27-
IMPORT_FUNC "InitForKernel",0x9F9AE99C,InitForKernel_9F9AE99C
27+
IMPORT_FUNC "InitForKernel",0x9F9AE99C,sceKernelSetInitCallback
2828
#endif
2929
#ifdef F_InitForKernel_0008
3030
IMPORT_FUNC "InitForKernel",0xA6E71B93,sceKernelInitFileName
3131
#endif
3232
#ifdef F_InitForKernel_0009
33-
IMPORT_FUNC "InitForKernel",0xC4F1BA33,InitForKernel_C4F1BA33
33+
IMPORT_FUNC "InitForKernel",0xC4F1BA33,sceKernelStartIntrLogging
3434
#endif
3535
#ifdef F_InitForKernel_0010
3636
IMPORT_FUNC "InitForKernel",0xCE88E870,sceKernelReleaseChunk
3737
#endif
3838
#ifdef F_InitForKernel_0011
39-
IMPORT_FUNC "InitForKernel",0xFD0F25AD,InitForKernel_FD0F25AD
39+
IMPORT_FUNC "InitForKernel",0xFD0F25AD,sceKernelShowIntrMaskTime
4040
#endif

src/kernel/pspintrman_kernel.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ int sceKernelDisableIntr(int intno);
7272
*/
7373
int sceKernelIsIntrContext(void);
7474

75+
/**
76+
* Query system call number of `function`.
77+
*
78+
* @param[in] function A function pointer of the function to get the syscall number.
79+
*
80+
* @return System call number if `>= 0`, `< 0` on error.
81+
*/
82+
int sceKernelQuerySystemCall(void *function);
83+
7584
#ifdef __cplusplus
7685
}
7786
#endif

0 commit comments

Comments
 (0)