Skip to main content

Module simple_state

Module simple_state 

Source
Expand description

Simple State struct; used in early boot and on a kernel panic

Authors: MarioS271

Re-exportsยง

use crate::drivers::gpu::basic_fb::font::Psf2Font; ๐Ÿ”’
use crate::drivers::gpu::basic_fb::framebuffer::BasicFramebuffer; ๐Ÿ”’
use crate::drivers::tty::uart::Uart; ๐Ÿ”’
use crate::lib::panic::kernel_panic; ๐Ÿ”’
use crate::lib::panic_codes::PanicCode; ๐Ÿ”’
use crate::lib::sync::irq_mutex::IrqMutex; ๐Ÿ”’
use crate::lib::sync::unchecked_cell::UncheckedCell; ๐Ÿ”’
use crate::lib::types::boot_info::PanicAction; ๐Ÿ”’
use core::sync::atomic::AtomicU8; ๐Ÿ”’
use core::sync::atomic::Ordering; ๐Ÿ”’

Structsยง

SimpleKernelState

Staticsยง

SIMPLE_STATE ๐Ÿ”’
Data structure for keeping the serial UART logger and basic_fb fb resources for early boot and panic The default initializations should not contain any non-null value in order for SIMPLE_STATE to be able to live in .bss to reduce binary size