krzysztof-cabaj
d9fc6b5cbe
cpu/fe310: move licenses to SPDX format
2025-09-18 17:45:12 +02:00
Benjamin Valentin
124b849503
cpu: call early_init()
2023-01-08 22:26:12 +01:00
Alexandre Abadie
2eb800cb8b
cpu/fe310: use coreclk instead of cpu_freq
2021-12-15 13:14:19 +01:00
Koen Zandberg
2692957c0e
riscv_common: Refactor common fe310 code to riscv_common
2021-02-05 09:32:19 +01:00
Koen Zandberg
128423edc6
cpu/fe310: Use newlib_syscalls_default stub implementations
...
This switches the fe310 to use the common newlib_syscalls_default
implementation.
2021-01-26 13:42:52 +01:00
Koen Zandberg
ba518ede09
cpu/fe310: Uncrustify code
2021-01-15 12:02:55 +01:00
Keith Packard
a0d3436486
cpu/fe310: Add PICOLIBC support [v3]
...
Disable the newlib-nano stubs code when picolibc is in use
Signed-off-by: Keith Packard <keithp@keithp.com>
---
v2:
Squash fixes in
v3:
call stdio_init in _PICOLIBC_ mode to initialize uart
v3:
Remove call to stdio_init from nanostubs_init, always
call from cpu_init.
2020-08-24 08:24:54 -07:00
Alexandre Abadie
a953b74bc7
cpu/fe310: restore flash initialization in cpu_init
2020-01-10 16:51:10 +01:00
Alexandre Abadie
97e1c7ba7e
cpu/fe310: reorganize files and includes
2020-01-10 16:41:33 +01:00
Kevin "Tristate Tom" Weiss
4b7c5915ec
Merge pull request #10953 from gschorcht/sys/shell/heap_cmd/pr
...
sys/shell: add heap command
2019-10-04 13:49:57 +02:00
kenrabold
1d6e37a7f7
cpu/fe310: interrupt handling cleanup
...
Cleanup of FE310 interrupt handler code
Optimization of intr context frame
Reduce size of intr stack
Added unhandled trap output
Fix PR #12237
2019-09-27 13:32:43 -07:00
kenrabold
547ebd1b27
cpu/fe310: use WFI to wait for SW interrupt
2019-09-16 09:32:27 -07:00
Gunar Schorcht
dfef2ce638
cpu/fe310: changes for common heap command
2019-09-05 09:20:55 +02:00
Sören Tempel
0e724e3d5d
cpu/fe310: don't call thread_yield when sched_active_thread is invalid
...
As the comment above cpu_switch_context_exit notes:
sched_active_thread is not valid when cpu_switch_context_exit() is called.
Unfortunately, thread_yield(), which is called directly by
cpu_switch_context_exit(), uses sched_active_thread possibly resulting
in a null pointer dereference.
Solution: Trigger a software interrupt to perform a context switch and
let sched_run() determine the next valid thread from there.
2019-08-28 18:09:05 +02:00
Marian Buschsieweke
08fba76fa6
cpu/fe310: Add call to periph_init()
...
Until now fe310's cpu_init() was missing a call to periph_init().
This commit adds this call.
2019-01-19 13:00:36 +01:00
kenrabold
7d1d5e77d8
cpu/fe310: add RISC-V cpu FE310
...
New CPU FE310 from SiFive based on RISC-V architecture
build: add makefile for RISC-V builds
Makefile for builds using RISC-V tools
2018-05-29 15:21:45 -07:00