There's something I've been wondering. Is there some protocol in place for accessing global variables of another task in OS4 PPC code? Looking at examples code just accesses variables regardless.
In the 68K days we had things like geta4() type functions. Or just taking care of it yourself with a bit of ASM. But what about OS4?
I tend to be pedantic about these things and if I need pass data or modify it I tend to keep it inside an object that I send to another task. For example, in an interrupt, I would make use of the user data field to pass an object.
That's a rather low level example, but what about in general code? Say, a parent task having variables read by a child task? Or even, a library function that needs to run code, which belongs to a library master task?
This timer interrupt example below does pass a data pointer as user data. But it doesn't access it as a parameter. Nor does it use IExec as a parameter. But rather, it accesses each directly. Unless I'm missing something I didn't know this was a special feature of interrupt routines.