Skip to content

此行放进#ifdef RT_USING_FPU 里是否更合理? #7574

@lepustse

Description

@lepustse

https://github.com/RT-Thread/rt-thread/blob/8768d631d01256f738029703b7f5da5050b54c7e/libcpu/arm/cortex-a/start_gcc.S#LL593C5-L593C5
虽然这一句放在这里并不会引发问题,但是只有发生FPU异常才会从trap undef 上面返回出来到达这里,其他情况cpu都会shutdown在trap undef里面。而且这一句的用意显然是为了恢复FPU异常时的现场,所以是否把这一句移到FPU条件编译里,在逻辑上更说得通?

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