History log of /netbsd-src/lib/libc/arch/hppa/gen/swapcontext.S (Results 1 – 8 of 8)
Revision Date Author Comments
# 33778f9e 15-Oct-2020 skrll <skrll@NetBSD.org>

Remove '_OFFSETOF' prefix for genassm(1) generate CPP identifers for
consistency with other arches.

NFCI and libc.so is the same before and after.


# 2af01421 05-May-2020 skrll <skrll@NetBSD.org>

Add a space before any non-nullified instruction. NFCI.


# 4c855bdf 19-Feb-2014 skrll <skrll@NetBSD.org>

Provide a genassym.cf in libc for hppa and use it.


# bba80928 12-Sep-2012 manu <manu@NetBSD.org>

setcontext() used to be incompatible with -lpthread since it affected
the TLS pointer, therefore wrecking the pthread environement.

Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha

setcontext() used to be incompatible with -lpthread since it affected
the TLS pointer, therefore wrecking the pthread environement.

Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha)
that controlled whether setcontext() would change the TLS pointer.
This change let libpthread override setcontext() with its own version
that unsets _UC_TLSBASE, enabling safe usage of setcontext() with
-lpthread.

We also have the following required changes here:
- rename alpha's _UC_UNIQUE into _UC_TLSBASE
- add _UC_TLSBASE definition in header file for all ports
(powerpc, sh3, sparc and sparc64 lack the implementation for now)
- introduce a libc stub that can be overriden for setcontext()
- modify MD libcs swapcontext() implementations so that they use the
setcontext() libc stub instead of doing a plain system call.

While we are there:
- document various MD _UC_* flags in header file
- add libc and libpthread tests for swapcontext() behavior
(hopefully helpful to spot MD problems introduced with this change)

Future work:
- Deciding whether kernel support or _UC_TLSBASE should be added for
powerpc, sh3, sparc and sparc64 is left to portmasters
sparc64

Approved by core@

show more ...


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# 4f3467d6 18-Nov-2007 skrll <skrll@NetBSD.org>

Remove unused include.

Fix unwind info with S/ENTRY/LEAF_&/


# f1273d89 28-Oct-2007 skrll <skrll@NetBSD.org>

Set up the tail of the instruction address queue so that
we don't have to rely on luck for swapcontext(3) to work.

This fixes a problem pointed out to me by Chuck Silvers.


# 56371a56 18-Jul-2004 chs <chs@NetBSD.org>

add *context and LWP support for hppa. translated from MIPS.