From 31cb5e1c2906dc8f1ef368e67c834748544be596 Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Sun, 5 Nov 2017 05:56:53 +0000 Subject: [PATCH] Remove unnecessary param --- arch/init.c | 2 +- arch/main.c | 2 +- arch/paging.c | 2 +- arch/paging.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/init.c b/arch/init.c index 7efaa00..d413cd0 100644 --- a/arch/init.c +++ b/arch/init.c @@ -36,7 +36,7 @@ const struct KernelMQ_Info *init(unsigned long multiboot_magic, unsigned long mu kinfo.kernel_and_modules_total_size = kinfo.kernel_size + kinfo.modules_total_size; paging_clear(); - paging_identity(&kinfo); + paging_identity(); /* kinfo.freepde_start = */ paging_mapkernel(&kinfo); paging_load(); diff --git a/arch/main.c b/arch/main.c index 303813b..b14bd9c 100644 --- a/arch/main.c +++ b/arch/main.c @@ -60,7 +60,7 @@ void main(const struct KernelMQ_Info *const kinfo_ptr) // we can map in VM, and we no longer rely on pre-relocated // data. paging_clear(); - paging_identity(&kinfo); // Still need 1:1 for lapic and video mem and such. + paging_identity(); // Still need 1:1 for lapic and video mem and such. paging_mapkernel(&kinfo); paging_load(); diff --git a/arch/paging.c b/arch/paging.c index 7d8ecf5..d0e3696 100644 --- a/arch/paging.c +++ b/arch/paging.c @@ -94,7 +94,7 @@ void paging_clear() kmemset(pagedir, 0, sizeof(pagedir)); } -void paging_identity(const struct KernelMQ_Info *const kinfo) +void paging_identity() { for (int i = 0; i < I386_VM_PT_ENTRIES; ++i) { unsigned int flags = I386_VM_PRESENT | diff --git a/arch/paging.h b/arch/paging.h index d29a693..34dc4ab 100644 --- a/arch/paging.h +++ b/arch/paging.h @@ -6,7 +6,7 @@ void paging_enable(); void paging_clear(); -void paging_identity(const struct KernelMQ_Info *kinfo); +void paging_identity(); int paging_mapkernel(const struct KernelMQ_Info *kinfo); unsigned long paging_load();