mirror of
https://github.com/olofk/serv.git
synced 2025-04-19 11:34:42 -04:00
Update to Zephyr 3.7.0
This commit is contained in:
parent
28e4704ed8
commit
830d8084b0
3 changed files with 24 additions and 1 deletions
2
west.yml
2
west.yml
|
@ -5,5 +5,5 @@ manifest:
|
|||
projects:
|
||||
- name: zephyr
|
||||
remote: zephyrproject-rtos
|
||||
revision: v3.5.0
|
||||
revision: v3.7.0
|
||||
import: true
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
zephyr_sources(
|
||||
soc_irq.S
|
||||
vector.S
|
||||
cpu_idle.c
|
||||
irq.c)
|
||||
|
|
22
zephyr/soc/riscv/servant/cpu_idle.c
Normal file
22
zephyr/soc/riscv/servant/cpu_idle.c
Normal file
|
@ -0,0 +1,22 @@
|
|||
#include <zephyr/irq.h>
|
||||
#include <zephyr/tracing/tracing.h>
|
||||
|
||||
// Override arch_cpu_idle() and arch_cpu_atomic_idle() to prevent insertion
|
||||
// of `wfi` instructions, which lock up our system. This was introduced in
|
||||
// Zephyr 3.6.0 with commit 5fb6e267f629dedb8382da6bcad8018b1bb8930a.
|
||||
//
|
||||
// This is probably a hardware bug in SERV. This issue is tracked as #131.
|
||||
// https://github.com/olofk/serv/issues/131
|
||||
|
||||
void arch_cpu_idle(void)
|
||||
{
|
||||
sys_trace_idle();
|
||||
irq_unlock(MSTATUS_IEN);
|
||||
}
|
||||
|
||||
void arch_cpu_atomic_idle(unsigned int key)
|
||||
{
|
||||
sys_trace_idle();
|
||||
irq_unlock(key);
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue