Move system76_ec::init() into serial::init()
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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}",
|
||||
|
||||
Reference in New Issue
Block a user