summaryrefslogtreecommitdiff
path: root/arch/i386/include/kernel
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2023-11-26 18:30:52 -0600
committerDanny Holman <dholman@gymli.org>2023-11-26 18:30:52 -0600
commit5af237109c8d0c5fa1b0772dbe56d1530ef4a1d5 (patch)
tree8a500ed8a0dc44bca319b07d7dc003d0909dcc3f /arch/i386/include/kernel
parent8c495b0465dc05632697a60c6689186097cd2dd6 (diff)
arch: i386: pic.h: change all chars into uint8_t
Make all variables with char or char* type into uint8_t. This makes the system more consistent and issues fewer compiler warnings. Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'arch/i386/include/kernel')
-rw-r--r--arch/i386/include/kernel/pic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/i386/include/kernel/pic.h b/arch/i386/include/kernel/pic.h
index c15c02f..779237e 100644
--- a/arch/i386/include/kernel/pic.h
+++ b/arch/i386/include/kernel/pic.h
@@ -1,6 +1,7 @@
#ifndef I386_PIC_H
#define I386_PIC_H
+#include <kernel/idt.h>
#include <stdint.h>
#define PIC1 0x20
@@ -39,7 +40,7 @@ static inline void io_wait(void) {
outb(0x80, 0);
}
-void pic_eoi(unsigned char irq);
+void pic_eoi(uint8_t irq);
void pic_remap(void);
uint16_t pic_get_irr(void);
uint16_t pic_get_isr(void);