Update to Zephyr 3.7.0

This commit is contained in:
Markus Koch 2024-08-02 16:40:56 +02:00 committed by Olof Kindgren
parent 28e4704ed8
commit 830d8084b0
3 changed files with 24 additions and 1 deletions

View file

@ -5,5 +5,5 @@ manifest:
projects:
- name: zephyr
remote: zephyrproject-rtos
revision: v3.5.0
revision: v3.7.0
import: true

View file

@ -4,4 +4,5 @@
zephyr_sources(
soc_irq.S
vector.S
cpu_idle.c
irq.c)

View 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);
}