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.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel