Kernel now enter continuous time telling mode

This commit is contained in:
Nigel Barink 2021-05-18 21:14:26 +01:00
parent f71a3a8ed6
commit e84d196b00
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -7,3 +7,4 @@ extern "C" {
#include "arch/i386/idt/idt.h"
#include "MMU.h"
#include "io.h"
#include "time.h"