mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-17 12:24:37 +03:00
Lesson 20 step 1, the timer
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user