Skip to main content

vyre_runtime/megakernel/protocol/
debug.rs

1/// Atomic write cursor: the next word to be written by PRINTF.
2pub const CURSOR_WORD: u32 = 0;
3/// First record word.
4pub const RECORDS_BASE: u32 = 1;
5/// Number of u32 words per PRINTF record.
6pub const RECORD_WORDS: u32 = 4;
7/// Record capacity compiled into the default megakernel program.
8pub const RECORD_CAPACITY: u32 = 64;
9/// Total u32 words compiled into the default debug-log buffer.
10pub const BUFFER_WORDS: u32 = RECORDS_BASE + RECORD_CAPACITY * RECORD_WORDS;