Move system76_ec::init() into serial::init()

This commit is contained in:
bjorn3
2025-09-13 13:00:00 +02:00
parent 5a6117b5ae
commit 711ea9a4ed
2 changed files with 3 additions and 3 deletions
+3
View File
@@ -10,6 +10,9 @@ pub static COM2: Mutex<SerialKind> = Mutex::new(SerialKind::NotPresent);
pub static LPSS: Mutex<SerialKind> = Mutex::new(SerialKind::NotPresent);
pub unsafe fn init() {
#[cfg(feature = "system76_ec_debug")]
super::system76_ec::init();
if cfg!(not(feature = "serial_debug")) {
// FIXME remove serial_debug feature once ACPI SPCR is respected on UEFI boots.
return;
-3
View File
@@ -90,9 +90,6 @@ pub unsafe extern "C" fn kstart(args_ptr: *const KernelArgs) -> ! {
// Set up graphical debug
graphical_debug::init(env);
#[cfg(feature = "system76_ec_debug")]
device::system76_ec::init();
info!("Redox OS starting...");
info!(
"Kernel: {:X}:{:X}",