aboutsummaryrefslogtreecommitdiff
path: root/src/bringelle.c
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2021-04-08 19:06:44 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2021-04-08 19:06:44 +0200
commit8fee35522dee033863f68c1d2b45f5fe988de9eb (patch)
tree5e094806066d2f13bc5ad1fefe663d132e291f8e /src/bringelle.c
parent958e2dae042ca9e28f23e509d541730f30fa8502 (diff)
Handle clock interrupt and cleaning code
Diffstat (limited to 'src/bringelle.c')
-rw-r--r--src/bringelle.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/src/bringelle.c b/src/bringelle.c
index 9e17906..f6b099c 100644
--- a/src/bringelle.c
+++ b/src/bringelle.c
@@ -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++;
+ }
+}