[parisc-linux] glibc hppa - get/set/make/swap/context() & non-atomic ops

Carlos O'Donell carlos@baldric.uwo.ca
Tue, 27 Aug 2002 11:14:53 -0400


PA'ers,

Comments or thoughts about the following issues would be appreciated.

These items are taken from my collection of TODO notes for glibc,
and were recently added by comments from Helge and Willy.

- Implement make/swap/set/get/context() calls in glibc
        = Don't know what's needed... can probably learn
        = about the calls from other arches.
        - Doesn't look like it will be that hard.
        - Helge brought the issue up since SAPDB relies
        - on this to work properly (www.sapdb.org)
	- With mcontext working properly... these calls
	- _should_ work :}
	* Didn't know these were broken or missing.

- Make atomic ops atomic
        = Need to implement exhcange_and_add/atomic_add
        = and compare_and_swap.
        - I have no idea how hard this will be.
        - PA has a single atomic operation called ldcw
        - Which is 'load and zero' ... we currently use
        - this to implement locking primities.
        * Are we going to have to use spinlocks to
        * handle the atomic operations?
	* I see 11 uses of generic/atomicity.h that need
	* to be fixed.

Cheers,
Carlos.