Expand description
Pastel boot-progress bar drawn along the bottom of the framebuffer.
Each boot milestone calls render with its ordinal; the bar fills
proportionally and shows the current stage label. If the boot freezes, the
bar simply stops growing at the last completed stage : a zero-cost visual
βwhere did it hangβ on hardware with no serial port (the target X13 case).
All drawing goes through the guarded VGA primitives, so every call made
before the framebuffer console is up : or under console.mode=serial : is a
silent no-op. No allocation, no locks of our own: safe at any boot stage.
Re-exportsΒ§
use super::api;πuse crate::framebuffer::RgbColor;πuse core::sync::atomic::AtomicUsize;πuse core::sync::atomic::Ordering;π
StructsΒ§
- Layout
- Shared HUD geometry: the writer reserves exactly this band and the bar draws into it, so the console text and the bar can never overlap.
ConstantsΒ§
- BORDER π
- Thin border around the track: muted grey.
- FILL π
- Completed part: pastel mint green.
- LABEL_
BG π - LABEL_
FG π - Label text: muted slate on a near-white strip.
- TOTAL
- Total number of boot milestones. Must match the highest ordinal passed by
the call sites in
kernel_main/init_apic_subsystem. - TRACK π
- Empty part of the track: soft lavender grey.
StaticsΒ§
- HAS_
LAST π - LAST_
LABEL π - LAST_
STEP π
FunctionsΒ§
- band_
height - Reserved pixel height of the HUD band: label strip + gap + bar + padding.
- fmt_
prefix π - Writes
"[step/total] "intobuf, returning the number of bytes written. - last_
render π - Copy the last drawn milestone into
bufand return it. - layout
- Computes the HUD band layout for a
wΓhframebuffer. - push π
- push_
usize π - remember π
- Remember the last drawn milestone so
clear_with()can repaint it. - render
- Draws the bar at
step/TOTALwith a short stage label.