mirror of
https://github.com/tailix/kernel.git
synced 2024-11-20 11:16:10 -05:00
Remove unnecessary param
This commit is contained in:
parent
a3a3d57ab4
commit
31cb5e1c29
4 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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 |
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue