Re: First cut of PowerPC support in NPTL
Roland McGrath <[email protected]>
| Newsgroups | gmane.comp.lib.phil |
|---|---|
| Message-ID | <[email protected]> |
Looks pretty good! I count five, maybe seven, macros in lowlevellock.h that are machine-dependent, and the rest of that file and all the rest of the locking code (except spinlocks) can move up to linux/ and be common to all the machines where compare_and_swap is as good as it gets. td_ta_map_lwp2thr should not use ps_get_thread_area on machines using a normal register. Just use the thread register value from ps_lgetregs with appropriate arithmetic directly. Thanks, Roland