#1910 closed defect (wontfix)

An option for architecture-specific SMP locks

Reported by: Marta Rybczynska Owned by: Joel Sherrill
Priority: normal Milestone: 4.11
Component: score Version: 4.11
Severity: normal Keywords:
Cc: jennifer.averett@…, sebastian.huber@…, gedare@…, fred@… Blocked By:
Blocking:

Description

This patch adds an option (in cpu.h) for architecture-specific SMP locks data types and implementation. It adds two defines CPU_USE_GENERIC_SMPLOCK_TYPES and CPU_USE_GENERIC_SMPLOCK_CODE. If they are set to TRUE, the default implementation is used. Otherwise, the architecture can define their own handling.

Rationale: not all architectures have compare-and-swap directly or the instruction set may not fit the default model for any other reason.

The default cpu.h has been also modified, as well as the files for sparc and i386.

Attachments (3)

smplocks_modular.patch (3.4 KB) - added by Marta Rybczynska on 09/08/11 at 08:58:14.
Configurable SMP locks implementation
flush.patch (755 bytes) - added by Marta Rybczynska on 11/07/11 at 17:28:50.
Addition of flush operations
smplock_patch.patch (1.5 KB) - added by Marta Rybczynska on 11/09/11 at 08:44:19.
Updated patch

Download all attachments as: .zip

Change History (10)

Changed on 09/08/11 at 08:58:14 by Marta Rybczynska

Attachment: smplocks_modular.patch added

Configurable SMP locks implementation

comment:1 Changed on 10/27/11 at 23:08:28 by Gedare Bloom

blocked: 1946

comment:2 Changed on 10/28/11 at 15:15:53 by Sebastian Huber

Cc: Sebastian Huber added

comment:3 Changed on 10/28/11 at 15:34:14 by Gedare Bloom

Cc: giddyup44@… added

comment:4 Changed on 11/02/11 at 14:36:41 by Joel Sherrill

Cc: Jennifer Averett added

Changed on 11/07/11 at 17:28:50 by Marta Rybczynska

Attachment: flush.patch added

Addition of flush operations

Changed on 11/09/11 at 08:44:19 by Marta Rybczynska

Attachment: smplock_patch.patch added

Updated patch

comment:5 Changed on 11/09/11 at 08:44:19 by Marta Rybczynska

attachments.isobsolete: 01, 1

comment:6 Changed on 12/03/13 at 14:22:25 by Sebastian Huber

Resolution: wontfix
Status: newclosed

The RTEMS SMP implementation changed considerably in the mean time.

comment:7 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.