[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haiku-development
Subject:    [haiku-development] Re: Non existing arch_atomic.h for ARM architectures
From:       Pawel Dziepak <pdziepak () quarnos ! org>
Date:       2014-02-14 14:55:37
Message-ID: CALS3df01CieTxjv9VCxW=G3JwM_hc0Hr-xhye7q7kvX9fKRWjw () mail ! gmail ! com
[Download RAW message or body]

2014-02-14 15:20 GMT+01:00 Pedro Pinto <pemdpinto@gmail.com>:
> I am not an ARM expert, but I think ARMv6 also supports memory barriers, =
but
> they are configured using the control coprocessor CP15. Something like th=
is:
>
> asm volatile("mcr p15, 0, r0, c7, c10, 5" : : : "memory");

This clobbers r0, but apart from that looks good.

> Is there any way to check which ARM version are we building?

Apparently, we use _M_ARM for such purpose (cf.
/headers/private/system/arch/arm/arch_config.h).

Pawe=C5=82

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic