Re: bind fails with sig11 on start / pthread failure on ARM?

From: Bernd Walter <ticso_at_cicely7.cicely.de>
Date: Fri, 19 Feb 2010 15:38:25 +0100
On Fri, Feb 19, 2010 at 08:13:15AM -0600, Mark Tinguely wrote:
> >
> >  Some time ago we changed an address of RAS. Probably that's the problem. Please try
> >  with patch below.
> >
> >  grzesiek
> 
> Good job.
> 
> IMO, ARM atomic.h should have cmpxchg and the other standard atomic routines
> so applications don't roll their own and they become stale.

You can see an explanation in svn log:
r174206 | dougb | 2007-12-03 09:26:34 +0100 (Mon, 03 Dec 2007) | 10 lines

Update this file so that BIND on ARM can actually work. I quote:

        The problem was, isc_atomic_cmpxchg() is almost like our
        atomic_cmpset_32(), except it expects the old value to be
        returned, whereas our atomic_cmpset_32 returns 1 on success,
        or 0 on failure. So I re-implemented something suitable.

Submitted by:   cognet
Reviewed by:    bsdimp

------------------------------------------------------------------------
r170349 | dougb | 2007-06-06 00:15:38 +0200 (Wed, 06 Jun 2007) | 5 lines

Add a custom atomic.h file which implements the C versions of the
code we already have assembly versions of.

Written by:     imp

> This will help application writers if we move the atomic commands from the
> ARMv4/ARMv5 ARM_RAS_START/ARM_RAS_END atomic method to ARMv6/ARMv7
> ldrex/strex/clrex commands.

-- 
B.Walter <bernd_at_bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Received on Fri Feb 19 2010 - 13:38:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:01 UTC