Tick indicator

master
E. Almqvist 3 years ago
parent 468c3874be
commit a181d37ea1
  1. 3
      TODO.md
  2. 11
      kernel/kernel.c

@ -1,6 +1,5 @@
# TO DO # TO DO
- PIC - Interupt handlers
- Interupts
- keeb? - keeb?
---------------- ----------------
- shell? - shell?

@ -49,13 +49,18 @@ void print_kernel_stats() {
buf = itoa(MAX_ROWS, buf, 10); buf = itoa(MAX_ROWS, buf, 10);
println(buf, DEFAULT_COLOR); println(buf, DEFAULT_COLOR);
int i = 0;
while(true) {
set_cursor_pos(0, 20);
buf = itoa(i, buf, 10);
printalign(buf, 0x0f, MIDDLE);
++i;
}
} }
void kernel_init() { void kernel_init() {
idt_init(); // Enable interupts idt_init(); // Enable interupts
vga_init(); // Initialize the screen
vga_init(); // Initialize the screen first
// i.e. clear the screen et cetera.
// Allocate VGA memory range // Allocate VGA memory range
pm_malloc_range(VGA_ADDRESS, VGA_ADDRESS_MAX, true); // force alloc the VGA range pm_malloc_range(VGA_ADDRESS, VGA_ADDRESS_MAX, true); // force alloc the VGA range

Loading…
Cancel
Save