Skip to content

[Feature Request] Add portMEMORY_BARRIER definition for Renesas RX MCU #854

Closed
@YuichiNakadaSX

Description

@YuichiNakadaSX

We have confirmed that the demo does not work correctly when optimizing with the compiler on Renesas RX MCU.
The PortMEMORY_BARRIER definition must be added to portmacro.h.

Confirmed phenomenon

The demo does not work correctly under the following conditions:

When it runs the demo, it loops infinitely in xTaskResumeAll in tasks.c.

Solution (request for this issue)

Add portMEMORY_BARRIER definition to portmacro.h as follows:

  • GCC
    #define portMEMORY_BARRIER()    __asm volatile ( "" ::: "memory" )
  • CC-RX
    #pragma inline_asm vPortMemoryBarrier
    static void vPortMemoryBarrier( void )
    {
    }
    
    #define portMEMORY_BARRIER()    vPortMemoryBarrier()

Target

All series of Renesas RX.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions