Crate hifive1

Source
Expand description

Board file for SiFive HiFive1b RISC-V development platform.

This board file is only compatible with revision B of the HiFive1.

Modules§

io

Structs§

HiFive1 🔒
A structure representing this platform that holds references to all capsules for this platform. We’ve included an alarm and console.

Constants§

FAULT_RESPONSE 🔒
NUM_PROCS

Statics§

CHIP 🔒
PROCESSES 🔒
PROCESS_PRINTER 🔒
STACK_MEMORY
Dummy buffer that causes the linker to reserve enough space for the stack.

Functions§

load_processes_not_inlined 🔒
For the HiFive1, if load_process is inlined, it leads to really large stack utilization in main. By wrapping it in a non-inlined function, this reduces the stack utilization once processes are running.
main
Main function called after RAM initialized.
start 🔒
This is in a separate, inline(never) function so that its stack frame is removed when this function returns. Otherwise, the stack space used for these static_inits is wasted.