Handle clock interrupt and cleaning code
This commit is contained in:
parent
958e2dae04
commit
8fee35522d
8 changed files with 79 additions and 17 deletions
|
@ -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++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue