[Bug 1910] New: An option for architecture-specific SMP locks

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Sep 8 09:58:15 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1910

           Summary: An option for architecture-specific SMP locks
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: marta.rybczynska at kalray.eu
                CC: frederic.brault at kalray.eu


Created attachment 1323
  --> https://www.rtems.org/bugzilla/attachment.cgi?id=1323
Configurable SMP locks implementation

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.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list