1
0
Fork 0
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:
Braiden Vasco 2017-11-05 05:56:53 +00:00
parent a3a3d57ab4
commit 31cb5e1c29
4 changed files with 4 additions and 4 deletions

View file

@ -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();

View file

@ -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();

View file

@ -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 |

View file

@ -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();