1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00

Remove unnecessary code

This commit is contained in:
Braiden Vasco 2017-11-05 07:58:07 +00:00
parent d5bbb416c9
commit 940d0734b1

View file

@ -14,11 +14,6 @@
#define I386_VM_PCD 0x010 // Cache disable
#define I386_VM_ACC 0x020 // Accessed
#define I386_VM_ADDR_MASK 0xFFFFF000 // physical address
#define I386_VM_ADDR_MASK_4MB 0xFFC00000 // physical address
#define I386_VM_OFFSET_MASK_4MB 0x003FFFFF // physical address
// Page directory specific flags.
#define I386_VM_BIGPAGE 0x080 // 4MB page
@ -99,11 +94,7 @@ void paging_identity()
unsigned long phys = i * PAGE_BIG_SIZE;
if ((MEM_UPPER_BASE & I386_VM_ADDR_MASK_4MB) <=
(phys & I386_VM_ADDR_MASK_4MB)
) {
flags |= I386_VM_PWT | I386_VM_PCD;
}
flags |= I386_VM_PWT | I386_VM_PCD;
pagedir[i] = phys | flags;
}