-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,5 @@ manifest: | |
projects: | ||
- name: zephyr | ||
remote: zephyrproject-rtos | ||
revision: v3.5.0 | ||
revision: v3.7.0 | ||
import: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
zephyr_sources( | ||
soc_irq.S | ||
vector.S | ||
cpu_idle.c | ||
irq.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
|