forked from Bananymous/banan-os
Kernel: Add RTC to get current time
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <kernel/panic.h>
|
||||
#include <kernel/PIC.h>
|
||||
#include <kernel/PIT.h>
|
||||
#include <kernel/RTC.h>
|
||||
#include <kernel/Serial.h>
|
||||
#include <kernel/tty.h>
|
||||
|
||||
@@ -63,9 +64,10 @@ void kernel_main(multiboot_info_t* mbi, uint32_t magic)
|
||||
PIT::initialize();
|
||||
Keyboard::initialize(on_key_press);
|
||||
|
||||
kprintln("Hello from the kernel!");
|
||||
auto time = RTC::GetCurrentTime();
|
||||
kprintln("Today is {2}:{2}:{2} {2}.{2}.{4}", time.hour, time.minute, time.second, time.day, time.month, time.year);
|
||||
|
||||
kprint("HHHHHHHHHHHHHHHHHHHHHHHHHHHHH\e[20D.\e[3K");
|
||||
kprintln("Hello from the kernel!");
|
||||
|
||||
ENABLE_INTERRUPTS();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user