mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2026-03-02 03:49:21 +00:00
Fixed warnings
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#include "isr.h"
|
||||
#include "idt.h"
|
||||
#include "../drivers/screen.h"
|
||||
#include "../drivers/keyboard.h"
|
||||
#include "../libc/string.h"
|
||||
#include "timer.h"
|
||||
#include "ports.h"
|
||||
|
||||
isr_t interrupt_handlers[256];
|
||||
|
||||
@@ -81,6 +81,7 @@ typedef struct {
|
||||
|
||||
void isr_install();
|
||||
void isr_handler(registers_t r);
|
||||
void irq_install();
|
||||
|
||||
typedef void (*isr_t)(registers_t);
|
||||
void register_interrupt_handler(u8 n, isr_t handler);
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
#include "timer.h"
|
||||
#include "isr.h"
|
||||
#include "ports.h"
|
||||
|
||||
u32 tick = 0;
|
||||
|
||||
static void timer_callback(registers_t regs) {
|
||||
static void timer_callback() {
|
||||
tick++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user