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.