RT-Thread / RT-Thread/rt-thread

M0没有SCB_VTOR 不能通过此寄存器恢复MSP

Open
#4,728 4 comments 0 reactions 1 assignee View on GitHub

@aozima is already working on this.

Since May 25, 2021.

bug
Dominant language
C
Stars
12.2k
Forks
5.4k
Avg merge
4d 12h
Merged PRs (30d)
40

Description

rt_hw_context_switch_to 函数 应判断从SCB_VTOR读出来的值,为0不要去修改Msp,否则后面的代码会执行失败
(M0不是所有的core 都有SCB_VTOR的)

; restore MSP
LDR r0, =SCB_VTOR
LDR r0, [r0]
LDR r0, [r0]
MSR msp, r0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.