Expand description
Minimal reset-to-Rust runtime for C-SKY bare-metal targets.
A device or board supplies memory.x. This crate supplies stack setup,
.data/.bss initialization, a generic 32/48/64-entry vector table, and
the section layout in link.x. It deliberately contains no SoC names,
peripheral addresses, interrupt numbers, or board policy.
The default 32-entry table maps every non-reset entry to the default
exception handler. vector-table-48 and vector-table-64 append 16 or 32
generic external-interrupt entries. A device runtime may additionally map
architecture exception 10 or 22 to the interrupt trampoline when that is
its documented dispatch contract.
Reset initially points VBR at the table in FLASH. Applications that need
mutable vectors may call relocate_vector_table while interrupts remain
disabled. This mirrors the two policies found in C-SKY SDKs without making
either one universal: some SDKs retain flash vectors, while others copy
the table to RAM and update VBR.
Constants§
- VECTOR_
TABLE_ ALIGNMENT - Required byte alignment of a C-SKY vector-table base.
Functions§
- vector_
table_ alignment - Returns the required byte alignment of a vector-table base.
- vector_
table_ entries - Returns the number of entries emitted in the selected vector table.
Attribute Macros§
- entry
- Defines the firmware entry point called after C-SKY runtime initialization.