[PATCH 2/3] bsps/i386: use Pentimum instructions for pc586 and pc686 builds.

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Oct 12 08:35:55 UTC 2016


On 12/10/16 10:26, pisa at cmp.felk.cvut.cz wrote:
> SMP build is broken with i386 set because libatomic and GCC
> generate infinite loop for __atomic_fetch_add_4 used
> in rtems_interrupt_lock_acquire
>
> __atomic_fetch_add_4:
>      push   %ebp
>      mov    %esp,%ebp
>      movl   $0x5,0x10(%ebp)
>      pop    %ebp
>      jmp    __atomic_fetch_add_4

Do you have a test case for this compiler/RTEMS bug?  The use of 
libatomic is inefficient, but it should work.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list