Gsoc2013-Atomic_Project-Status
Deng Hengyi
wei.a.yang at gmail.com
Sun Jul 7 14:55:02 UTC 2013
Hi all,
This is a brief week status report about my GSOC2013 project ----- atomic ops support for RTEMS.
DONE:
1. Discuss with mentor to define the new atomic API.
2. Implement a generic architecture-depend part atomic ops based on std atomic.h
3. Test on ARM architecture realview_pbx_a9_qemu_smp BSP.
4. Add conditional check for atomic support when build.
TODO:
1. Clean up old atomic related files
2. Design new atomic test case based on new API and implementation.
Blog updates:
http://weiy.github.io
WeiY
Best Regards
在 2013-6-24,下午4:16,Sebastian Huber <sebastian.huber at embedded-brains.de> 写道:
> Hello Wei,
>
> great, you have now a good development environment.
>
> I work currently on a requirements document for the atomic operations API. It was not really clear what we need for the SMP support in RTEMS, but since I worked on this topic the last couple of months I have now a better understanding of the requirements.
>
> Hopefully we can implement the ticket locks for example in
>
> http://git.rtems.org/rtems/tree/cpukit/score/cpu/powerpc/rtems/score/cpusmplock.h
> http://git.rtems.org/rtems/tree/cpukit/score/cpu/arm/rtems/score/cpusmplock.h
>
> with the atomic operations and get sufficiently efficient code.
>
> Other applications are a phase-fair read-write lock (for example to read and update the ticks since boot), a sense barrier or lock-free updates of heir to executing thread changes.
>
> On 06/22/2013 03:59 PM, Deng Hengyi wrote:
>> Hi all,
>>
>> This is a brief status report about my GSOC2013 project ----- atomic ops support for RTEMS.
>>
>> DONE:
>> 1. Setup the development environment including the latest rtems git repo, rtems-test git repo and qemu for realview_pbx_a9.
>> 2. Build the latest rtems toolchains which include the stdatomic.h support.
>> 3. Modify the existing atomic API to be compatible with C11 std atomic.h.
>> 4. Replace the existing atomic SMP implementation with stdatomic.h.
>> 5. Build the spatomic and smpatomic test case for realview_pbx_a9 SMP and UP.
>> 6. All the spatomic and smpatomic have been passed.
>> 7. Have submit the patches to devel list to be reviewed.
>>
>> TODO.
>> 1. Plan to integrate the patches into mainline.
>> 2. Support the stdatomic.h for other architectures such as PowerPC, Mips and Sparc.
>> 3. Add the detection for whether support stdatomic.h for some architectures.
>>
>> WeiY
>> Best Regards
>>
>
>
> --
> 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