ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation.sys.syschk.types Module Reference

Data Structures

struct  zxfoundation::sys::syschk::fmt_loc
 Bundle carrying a format-string and its call-site source location. More...
struct  zxfoundation::sys::syschk::zx_crash_record
 Crash record written into the BSP lowcore on every system_check call. More...

Enumerations

enum class  syschk_severity : u8 { notice = 0x0U , warning = 0x1U , critical = 0x2U , fatal = 0x3U }
 Severity annotation for a system-check event.

Functions

template<usize N>
consteval fmt_loc (const char(&f)[N], std::source_location l=std::source_location::current()) noexcept
 Construct from a NUL-terminated string literal.
consteval fmt_loc (std::string_view sv, std::source_location l=std::source_location::current()) noexcept
 Construct from a lib::string_view (for programmatic use).
constexpr auto zxfoundation::sys::syschk::severity_name (syschk_severity s) noexcept -> const char *
 Return a short ASCII label for a severity level.

Variables

u8 _pad [4] {}
 Reserved; must be zero.
u16 cpu_id {}
 Logical CPU ID of the reporting processor.
u8 err_category {}
 lib::error_category value of the triggering error.
u32 err_code {}
 Per-category error code.
std::string_view fmt
 The format string.
std::source_location loc
 Call-site source location.
u64 magic {}
 ZX_CRASH_RECORD_MAGIC when record is valid.
char msg [ZX_CRASH_MSG_LEN] {}
 NUL-terminated human-readable reason string.
u64 psw_addr {}
 PSW instruction address at time of check.
u64 psw_mask {}
 PSW mask word at time of check.
u8 severity {}
 Raw syschk_severity value.
constexpr u32 zxfoundation::sys::syschk::ZX_CRASH_MSG_LEN = 128U
 Maximum length (bytes) of the crash message field, NUL included.
constexpr u64 zxfoundation::sys::syschk::ZX_CRASH_RECORD_MAGIC = 0x5A584352554E4348ULL
 Magic value that marks an initialized zx_crash_record. ASCII: "ZXCRUNCH".
constexpr u32 zxfoundation::sys::syschk::ZX_CRASH_RECORD_OFFSET = 0x1400U
 Byte offset of the crash record within the lowcore prefix page.

Files

file  zxfoundation/sys/syschk.zcomponent/types.cxxm