Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 2010 15:38:25 +0100
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Mark Tinguely <tinguely@casselton.net>
Cc:        current@freebsd.org, ticso@cicely7.cicely.de, kostikbel@gmail.com, arm@freebsd.org, ticso@cicely.de
Subject:   Re: bind fails with sig11 on start / pthread failure on ARM?
Message-ID:  <20100219143824.GI43625@cicely7.cicely.de>
In-Reply-To: <201002191413.o1JEDFpF018272@casselton.net>
References:  <4B7E840F.2040709@semihalf.com> <201002191413.o1JEDFpF018272@casselton.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100219143824.GI43625>