From e50e23d0dbd55b67b4ef79b39344a630fa8b8845 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Thu, 26 Mar 2020 11:09:23 -0400 Subject: [PATCH] clock: generic century reading --- src/clock.rs | 2 +- src/main.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/clock.rs b/src/clock.rs index 3fd690f..6bf4afe 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -9,7 +9,7 @@ lazy_static! { } pub fn current_time() -> DateTime { - let rtc = CLOCK.lock().read_rtc(CMOSCenturyHandler::CurrentYear(2019)); + let rtc = CLOCK.lock().read_rtc(CMOSCenturyHandler::CurrentYear(2000)); return Utc .ymd( rtc.year.try_into().unwrap(), diff --git a/src/main.rs b/src/main.rs index 9f45d99..05523db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,7 +24,6 @@ fn kernel_main(boot_info: &'static BootInfo) -> ! { println!("now: {}", now.to_string()); println!("Running WASM:"); - wasm::run(); println!("[ ] success");