RT-Thread / RT-Thread/rt-thread
master 的 raspberrypi-pico 开启smp 编译报错
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
开启smp 后编译报错
libcpu/cpuport.c:148:17: error: 'struct rt_thread' has no member named 'scheduler_lock_nest'; did you mean 'cpus_lock_nest'?
148 | thread->scheduler_lock_nest = pcpu->current_thread->scheduler_lock_nest;
查看 rtdef.h 的 修改log,在下面提交中已经去掉了,
SHA-1: 3283f54c7a0444b2e51ec79a4da57e7871528f05
- 🎈 perf: perf rt_hw_interrupt_disable/enable (#8042)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read libcpu/cpuport.c around line 148 and inspect the rtdef.h change associated with SHA-1 3283f54c7a0444b2e51ec79a4da57e7871528f05. Reproduce an SMP build for the Raspberry Pi Pico, then verify that the build completes without the missing scheduler_lock_nest member error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, raspberry-pi
- Domain
- embedded-iot, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100