Well, it's working! Thanks for the starting off points. I'll not give the full details as it's not a recommended solution from Apple, but for those on the same path the breadcrumbs will lead to libplatform and getting some understanding of thread specific data storage. But it all works now, coroutines with setjmp/longjmp in user space!
Sadly the open source project for this specific library is now defunct so nowhere to upstream the new code, but it's nifty that it will now work for macOS running on PowerPC, i386, x64 and Apple Silicon. I believe it's time for a disco party.
Topic:
Programming Languages
SubTopic:
General