Skip to content

Commit

Permalink
Update SysidentForUser Library
Browse files Browse the repository at this point in the history
  • Loading branch information
Princess-of-Sleeping authored Jun 2, 2020
1 parent 58b8ad5 commit aee2fc0
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions SysidentKernel/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ SceBootArgs *(* sceKernelSysrootGetKblParam)(void);

int (* scePervasiveGetSoCRevision)(void);

int (* sceSysconGetBaryonVersion)(void);
void (* sceSysconGetErnieDLVersion)(int *result);
int (* sceSysconGetBatteryVersion)(int *HWinfo, int *FWinfo, int *DFinfo);

Expand Down Expand Up @@ -81,6 +82,19 @@ int sysidentGetSoCRevision(int *pRev){
return res;
}

int sysidentGetBaryonVersion(void){

int state, res;

ENTER_SYSCALL(state);

res = sceSysconGetBaryonVersion();

EXIT_SYSCALL(state);

return res;
}

int sysidentGetErnieDLVersion(int *pVersion){

int state, res;
Expand All @@ -101,9 +115,7 @@ int sysidentGetErnieDLVersion(int *pVersion){

int sysidentGetBatteryVersion(int *pHWinfo, int *pFWinfo, int *pDFinfo){

int state, res;

int HWinfo, FWinfo, DFinfo;
int state, res, HWinfo, FWinfo, DFinfo;

ENTER_SYSCALL(state);

Expand Down Expand Up @@ -132,6 +144,9 @@ int module_start(SceSize argc, const void *args){
if(GetExport("SceLowio", 0xE692C727, 0x714EEFB7, &scePervasiveGetSoCRevision) < 0)
return SCE_KERNEL_START_NO_RESIDENT;

if(GetExport("SceSyscon", 0x60A35F64, 0xFF86F4C5, &sceSysconGetBaryonVersion) < 0)
return SCE_KERNEL_START_NO_RESIDENT;

if(GetExport("SceSyscon", 0x60A35F64, 0xD2F456DC, &sceSysconGetErnieDLVersion) < 0)
return SCE_KERNEL_START_NO_RESIDENT;

Expand Down

0 comments on commit aee2fc0

Please sign in to comment.