unknownbrackets / ps2autotests

A set of test programs run on a PS2, with accompanying results.
ISC License
25 stars 7 forks source link

Improved kernel iop thread stat #23

Closed jpd002 closed 8 years ago

jpd002 commented 8 years ago

Added a few more test cases in IOP ReferThreadStatus test.

I've also added schedf and flushschedf functions in common-iop.c. In order to be able to do that, I needed to add the xprintf.c and xprintf.h files from the PS2SDK because vsnprintf is broken on the IOP (it exists in the sysclib module, but it doesn't work).

unknownbrackets commented 8 years ago

Some of these statuses look like the same ones as the PSP. Definitely not the error codes, though, which are more structured (certain bits reserved to determine which module, etc.)

-[Unknown]

jpd002 commented 8 years ago

Interesting. I bet they used the code from the IOP kernel as a starting point for the PSP kernel, since many things look quite similar. Thanks for merging!