Skip to content

RISC-V 移植中没有初始化线程的thread-pointer #7820

@helloeagleyang

Description

@helloeagleyang

RT-Thread 移植的libcpu/risc-v/common/cpuport.c中没有初始化任务栈的thread-pointer,在线程中调用到依赖thread-pointer的gcc库函数后,可能会导致异常(因为tp默认被初始化0xdeadbeef,这个地址在大部分RISC-V 芯片是非法地址)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions