Skip to content

[Bug] rt_kprintf_threadsafe在多核情况下会修改msh shell中设置的console_dev->flag #10546

@zhangjing0303

Description

@zhangjing0303

RT-Thread Version

V5.2.0

Hardware Type/Architectures

RISCV

Develop Toolchain

Other

Describe the bug

Image

多核SMP的情况下,使用package rt_kprintf_threadsafe中的的rt_kprintf打印,msh shell会通过finsh_set_device设置open_flag中的RT_DEVICE_FLAG_INT_RX属性,如果这个过程跟另外一个核上跑rt_kprintf正好撞在一起,rt_kprintf会把finsh_set_device中设置的属性改掉,导致shell无法输入。

Other additional context

No response

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