I don't know if it's really a bug or if it's done on purpose, anyways i comment it here.
I can use the pspSdkSetK1 without problems, but with pspSdkGetK1 i always get a undefined reference in the linker.
Looking at the sources of k1set.S, the problem is easy to find:
Aye a bug me thinks, I probably threw that into pspsdk and never bothered to actually check it worked cause psplink has its own version. Of course in general it doesn't get used alot and when it does you probably more likely to abitrarily set it to 0 and get the return from SetK1 anyway. Ill fix it ;)
TyRaNiD wrote:Aye a bug me thinks, I probably threw that into pspsdk and never bothered to actually check it worked cause psplink has its own version. Of course in general it doesn't get used alot and when it does you probably more likely to abitrarily set it to 0 and get the return from SetK1 anyway. Ill fix it ;)
Well, i'm actually doing the contrary, setting the k1 to 1 :D
I know it's something unusual, but it's the only way i've found to use the net functions from a kernel prx.
Anyways, the getK1 is not essential, i just tried to use it for doing some debug and i found that bug.
Really setting it to 1 makes a difference ? For one thing user threads I think are indicated by 0x10 and as the net libs are direct link and not through syscalls it shouldn't make a difference anyway. Still who knows ;)