Lesson 20 step 1, the timer

This commit is contained in:
Carlos
2015-03-19 20:07:50 +01:00
parent 1a98cab56b
commit 7797630a24
4 changed files with 28 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
#include "timer.h"
#include "../drivers/screen.h"
#include "../kernel/util.h"
#include "isr.h"
u32 tick = 0;
@@ -7,7 +8,10 @@ u32 tick = 0;
static void timer_callback(registers_t regs) {
tick++;
kprint("Tick: ");
kprint(tick);
char *tick_ascii;
int_to_ascii(tick, tick_ascii);
kprint(tick_ascii);
kprint("\n");
}