Kernel now enter continuous time telling mode
This commit is contained in:
parent
f71a3a8ed6
commit
e84d196b00
@ -144,6 +144,15 @@ extern "C" {
|
||||
|
||||
asm volatile ("int $4");
|
||||
|
||||
|
||||
|
||||
while (true){
|
||||
// Read time indefinetely
|
||||
read_rtc();
|
||||
printf( "(YY-MM-DD h:mm:ss): %2d-%2d-%2d %2d:%2d:%2d\r" ,year, month, day, hour, minute, second);
|
||||
delay(1000);
|
||||
}
|
||||
|
||||
/** Lets start using the serial port for debugging .. **/
|
||||
// Hopefully once we go into realmode or do something that
|
||||
// cause the screen to go black.. this serial comms part will give
|
||||
|
@ -7,3 +7,4 @@ extern "C" {
|
||||
#include "arch/i386/idt/idt.h"
|
||||
#include "MMU.h"
|
||||
#include "io.h"
|
||||
#include "time.h"
|
||||
|
Loading…
Reference in New Issue
Block a user