If there is a gap > 4k in an incoming minielf, the swap offset
becomes desynchronized with the loading offset.
This patch catches that case and increments the swap offset. The
gap data is simply uninit and unused by the system.
Problem: relative .toml config paths don't resolve
when cargo is invoked from a subdirectory like kernel/.
Solution: convert relative paths to absolute against
the project root in the cargo() helper.
Problem: there is no way to pass extra cargo config
(e.g. vendored sources) through xtask to the
underlying cargo invocations.
Solution: accept --config flags in cargo xtask and
thread them through all internal cargo invocations.
The cargo() helper now returns a Command with the
config flags already applied.
Problem: env!() bakes the path at compile time,
so it breaks when the binary runs from a different
location (e.g. a Guix/Nix sandbox or container).
Solution: use std::env::var() to read it at runtime.
Fix the ball app compiling as type checks failed due to expecting isize
rather than i16.
Remove DrawStyle import as has been moved and no longer needed.
Signed-off-by: S Hockham <shockham@protonmail.com>
this allows the ADC to depend on core HAL services. It's structured
so that other 'misc' services would go into the "other" module,
just to keep the overhead of threads/services down a bit. Up until
this point all the other services mapped to existing/other
server names, like the RTC, susres, etc.
This will hopefully save some troubles for developers who
accidentally invoke a divide without realizing it.
Prints an error with instructions on how to resolve the
situation.
- handle .rodata, .data, .bss, .set labels better. This allows
for static globals
- handle call instructions. These are manually resolved by
changing the call pseudo-instruction into a jal with a rust
assembly-compliant label.
1. we can't resolve jump tables in Rust assembly. The label
grammar isn't rich enough to do this. As a result, this code
genreation method is suppressed.
2.there is no 'div' instruction on this PicoRV, so the +m is
converted to +zmmul, which correctly emits mulitplies, but
skips the divide.
A soft divide library is provided for programs that require
division.
This C routine incorporates statics, arrays, globals,
switch/case, division, and a bunch of other stuff that
is designed to exercise corner cases in the assembly conversion
script.
The program itself just cycles LEDs in a rainbow vomit pattern.