unknownbrackets / ps2autotests

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

Imports.lst build + IOP ReferThreadStatus test #15

Closed jpd002 closed 9 years ago

jpd002 commented 9 years ago

Added rule in common-iop.mk to allow building of imports stub. Basically, every test directory should have its own imports.lst and irx_imports.h files detailing the modules and functions they need to import. In Makefile, imports.o needs to be specified in the EXTRA_OBJS variable for the new build rule to work.

I've also added a basic ReferThreadStatus test to show how the build rule works. I'm only importing ReferThreadStatus from thbase at the moment. Although GetThreadId is a thbase function, there's no need to specify it in imports.lst because it is already imported by libkernel.a for some reason (https://github.com/ps2dev/ps2sdk/blob/master/iop/kernel/src/thbase.s).