Skip to content

Query: Exclusive Access #4866

@deepikabhavnani

Description

@deepikabhavnani

__EXCLUSIVE_ACCESS Macro is set in "core_cm.h" file considering the ARM architecture.

#ifndef __EXCLUSIVE_ACCESS
#if   ((__ARM_ARCH_7M__      == 1U) || \
       (__ARM_ARCH_7EM__     == 1U) || \
       (__ARM_ARCH_8M_MAIN__ == 1U))
#define __EXCLUSIVE_ACCESS      1U
#else
#define __EXCLUSIVE_ACCESS      0U
#endif
#endif

EXCLUSIVE_ACCESS macro is set in "mbed_critical.c" file.

#define EXCLUSIVE_ACCESS (!defined (__CORTEX_M0) && !defined (__CORTEX_M0PLUS))

Shouldn't we use single macro, as it looks both of them are for same purpose. Or any specific reason to have this redefined in *.c file?

@sg- @0xc0170 @bulislaw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions