Nathan Whitehorn
88fe385600
Do not restore the register holding the TLS pointer when doing various
...
usermode context switches (long jumps and ucontext operations). If these
are used across threads, multiple threads can end up with the same TLS base.
Madness will then result.
This makes behavior on PPC match that on x86 systems and on Linux.
MFC after: 10 days
2012-04-11 00:00:40 +00:00
Andreas Tobler
54558cdc0e
Replace the assembler macro WEAK_ALIAS with a new macro WEAK_REFERENCE which
...
has the same API as __weak_reference(). Give 'x' in SYS.h a more meaningful
name.
Tested on 32- and 64-bit PowerMac.
Reviewed by: bde
2012-02-05 20:04:43 +00:00
Andreas Tobler
d172493d20
Two other places where we can use WEAK_ALIAS.
2012-01-08 11:57:38 +00:00
Konstantin Belousov
8f861da99c
Mark assembler sources from libc as working with non-executable stack.
...
Reviewed and tested by: nwhitehorn
2011-01-14 11:33:40 +00:00
Peter Grehan
8238b87b55
Minimal libc for PowerPC.
...
Reviewed by: benno
Approved by: re (blanket)
2002-12-04 07:25:14 +00:00