Advertisement
GeeckoDev

Kernel_Library_D13BDE95 reverse

Feb 21st, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. u32 Kernel_Library_D13BDE95(void)
  2. {
  3.     s32 unk0 = *(s32*)0x2BC0;
  4.     u32 unk1;
  5.  
  6.     if (unk0 == 0)
  7.     {
  8.         // ThreadManForUser_D13BDE95
  9.         sceKernelCheckThreadStack();
  10.         return;
  11.     }
  12.  
  13.     unk1 = pspGetSp() - *(s32*)(0x2BC0 + 200);
  14.  
  15.     if (unk1 >= 64)
  16.     {
  17.         // 0x80020064
  18.         return SCE_ERROR_KERNEL_CANNOT_BE_CALLED_FROM_INTERRUPT;
  19.     }
  20.  
  21.     return unk1;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement