mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-08 04:56:43 +00:00
Previously, we would unconditionally zero out the remainder of a page
when finished copying. We wrapped to PAGE_SIZE in order to avoid
corrupting another process' memory.
However, an issue was discovered under the following circumstances:
1. There are fewer than 4096 bytes of `.bss`
2. The `.bss` ends on a page boundary
Under these conditions, the loader would load the section before the
`.bss` into the page, then clear out the `.bss`, and finally clear the
entire page, overwriting the previous section.
Skip the remainder-of-page clearout when the `.bss` ends on a page
boundary, rather than clearing the entire page.
Signed-off-by: Sean Cross <sean@xobs.io>
|
||
|---|---|---|
| .. | ||
| fonts | ||
| args.rs | ||
| asm.S | ||
| debug.rs | ||
| font6x12.png | ||
| font6x12_1bpp.raw | ||
| fonts.rs | ||
| generate_fonts.py | ||
| main.rs | ||
| murmur3.rs | ||
| secboot.rs | ||
| test.rs | ||