vshBridge is a wrapper for functions..
most of the exported functions (maybe all of them :)) do 3 particular things
1) check if the value returned by sceKernelGetUserLevel is < 4.
2) backup k1 and set k1 = k1 >> 16
3) call the original function and restore the k1
I have two questions:
what does it mean to have the value returned by sceKernelGetUserLevel less than 4?
and what happens by setting k1 = k1 >> 16?
whe use to set k1 to 0 to wrap kernel mode function to user mode app....
(a full list of vshBridge function and the corresponding sce* one coming soon)
vshBridge questions
I'm sure step 1 checks if the calling thread can do that thing.
I saw the k1 = k1 >> 16 in most kernel functions. Probably the effective K1 is stored like this (shifted 16-bit right). When using k1 = 0 you don't notice this because 0 >> 16 = 0. (Just some guessing!).
Bye,
ab5000.
I saw the k1 = k1 >> 16 in most kernel functions. Probably the effective K1 is stored like this (shifted 16-bit right). When using k1 = 0 you don't notice this because 0 >> 16 = 0. (Just some guessing!).
Bye,
ab5000.
Code: Select all
%:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%>