Handle clock interrupt and cleaning code

This commit is contained in:
Loic Guegan 2021-04-08 19:06:44 +02:00
parent 958e2dae04
commit 8fee35522d
8 changed files with 79 additions and 17 deletions

View file

@ -2,22 +2,31 @@
#include "utils/asm.h"
#include "utils/pic.h"
#include "utils/8042.h"
#include "utils/multiboot.h"
#include "boot/multiboot.h"
extern char *name_addr;
void bringelle(){
clear();
printc("Booting Bringelle...\n",GREEN);
pic_enable_interrupt();
// clear();
//print("Booting Bringelle...");
//pic_enable_interrupt();
print("Booting Bringelle...");
// Search for bootloader informations
MBI_TAG_BL_NAME bl_infos;
if(!mb_load_bl_name(&bl_infos)){
print(bl_infos.name);
print(" detected!");
print(" detected!\n");
}
while(1);
}
void clock(){
static int tic=0;
static int sec=0;
tic++;
if(tic>=20){
tic=0;
sec++;
}
}