> Just to be clear because you didn't state that this
> code *is* working on MacOSX on PowerPC, is it?
> Because it works for me. Just thought I'd mention
> it. If you want it I'll post but it's pretty straight forward
> powerpc assembly.

Thanks, but I already have working context-switch
code for OS X on PowerPC.  The actual context-switch
code I'm using for OS X on x86 is more careful than
the assembly in the test program I posted.

The test program was intended only to be a minimal
illustration of the problem.

The fact that it works on PowerPC is one of the reasons
I was so surprised it doesn't work on x86.  But maybe
they felt the small number of x86 registers justified
using the high-order bits of the stack pointer as
some kind of per-thread identifier.  Everyone else
seems to have made that mistake too, though everyone
else has corrected it.

Russ

Reply via email to