Nice! Thanks! I suspected it would be something like that, though it didn't occur to me that a semaphore was the right thing to search for.
A related issue is how to detect which version of 68060.library was installed by SetPatch. This can be crucial to performance, since the chip ram is set to imprecise mode (ala speedychip) in version 42 and above but to precise in versions before that.
The question is, will it do to simply try to open 68060.library version 42, i.e.
move.l $4.w,a6
lea name(pc),a1
moveq.l #42,d0
jsr _LVOOpenLibrary(a6)
tst.l d0
...
name: dc.b '68060.library',0
What will happen if SetPatch was not run, or if it for some reason did not initialize the 68060.library, or if there is no 060 but 68060.library was present anyway?
For posting code, try the pre-tags. ;)