aboutsummaryrefslogtreecommitdiff
path: root/src/bringelle.c
blob: f6b099cff3e0462607f0763aad336205cd7b20e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "utils/print.h"
#include "utils/asm.h"
#include "utils/pic.h"
#include "utils/8042.h"
#include "boot/multiboot.h"

extern char  *name_addr;

void bringelle(){
  clear();
  printc("Booting Bringelle...\n",GREEN);
  pic_enable_interrupt();

  // Search for bootloader informations
  MBI_TAG_BL_NAME bl_infos;
  if(!mb_load_bl_name(&bl_infos)){
    print(bl_infos.name);
    print(" detected!\n");
  }

  while(1);
}

void clock(){
  static int tic=0;
  static int sec=0;
  tic++;
  if(tic>=20){
    tic=0;
    sec++;
  }
}