When you define the prototype of the function, tell it you are passing a struct, not a pointer to a struct. For example, in this IPCS verb exit I wrote, this is what main() looks like:
int main(struct abdpl adpl) { // R1 on entry points to the structure, not to a pointer to the struct.
,,,
}
------------------------------
Todd Burch
------------------------------