-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> 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.
>

Good deal.

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

Right, that was assumed. However, if you hadn't
done it on PowerPC I figured I might as well toss
some code your way if you didn't feel like mucking
about.

> 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.
>

Huh, interesting. I don't have access to an x86 OSX
so I didn't notice this. It's odd they haven't changed
their code base to solve the tid in a more elegant
fashion, as you say, like most other OSs.

Don "north" Bailey



-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.6 (Build 6060)

iQA/AwUBREiDJ1/Ie1ANMtLuEQKHBwCggMAxtvNoVcWubFIeBjR4zIEHQ28Anjiz
W2loMIbT6eb4Tuy/J3JWcI6J
=ttLY
-----END PGP SIGNATURE-----

Reply via email to