Merge into main the new state of the operating system/kernel #1
@ -144,6 +144,15 @@ extern "C" {
|
|||||||
|
|
||||||
asm volatile ("int $4");
|
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 .. **/
|
/** Lets start using the serial port for debugging .. **/
|
||||||
// Hopefully once we go into realmode or do something that
|
// Hopefully once we go into realmode or do something that
|
||||||
// cause the screen to go black.. this serial comms part will give
|
// 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 "arch/i386/idt/idt.h"
|
||||||
#include "MMU.h"
|
#include "MMU.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
|
#include "time.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user