summaryrefslogtreecommitdiff
path: root/src/kernel/arch/i386/gdt
diff options
context:
space:
mode:
authordzwdz2021-08-24 17:12:57 +0200
committerdzwdz2021-08-24 17:12:57 +0200
commit3b8b07ee2eb21e043a56cdc548e2be34857adb00 (patch)
tree0871986db06db00352ceccd80680ba37e4ef56e0 /src/kernel/arch/i386/gdt
parent31c1536e68399a199a09fa55571fa5bdd92cbef7 (diff)
replace () with (void) in function definitions
`()` means that any amt of arguments will be accepted, which isn't what i want
Diffstat (limited to 'src/kernel/arch/i386/gdt')
-rw-r--r--src/kernel/arch/i386/gdt/gdt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/arch/i386/gdt/gdt.c b/src/kernel/arch/i386/gdt/gdt.c
index e4cd3ef..6958bb5 100644
--- a/src/kernel/arch/i386/gdt/gdt.c
+++ b/src/kernel/arch/i386/gdt/gdt.c
@@ -42,8 +42,8 @@ static struct tss_entry TSS;
static struct lgdt_arg lgdt_arg; // probably doesn't need to be global
static void gdt_fillout(struct gdt_entry* entry, uint8_t ring, bool code);
-static void gdt_prepare();
-static void gdt_load();
+static void gdt_prepare(void);
+static void gdt_load(void);
static void gdt_fillout(struct gdt_entry* entry, uint8_t ring, bool code) {
@@ -69,7 +69,7 @@ static void gdt_fillout(struct gdt_entry* entry, uint8_t ring, bool code) {
};
}
-static void gdt_prepare() {
+static void gdt_prepare(void) {
GDT[SEG_null].present = 0;
gdt_fillout(&GDT[SEG_r0code], 0, true);
@@ -102,7 +102,7 @@ static void gdt_prepare() {
};
}
-static void gdt_load() {
+static void gdt_load(void) {
lgdt_arg.limit = sizeof(GDT) - 1;
lgdt_arg.base = (uintptr_t) &GDT;
asm("lgdt (%0)"
@@ -121,7 +121,7 @@ static void gdt_load() {
: : "r" (SEG_r0data << 3) : "memory");
}
-void gdt_init() {
+void gdt_init(void) {
gdt_prepare();
gdt_load();
}