Style cleanup only.
This commit is contained in:
@@ -281,17 +281,17 @@ void
|
|||||||
init_page_directory()
|
init_page_directory()
|
||||||
{
|
{
|
||||||
TRACE(("init_page_directory\n"));
|
TRACE(("init_page_directory\n"));
|
||||||
uint32 smalltype;
|
uint32 smallType;
|
||||||
|
|
||||||
// see if subpages disabled
|
// see if subpages are disabled
|
||||||
if (mmu_read_C1() & (1 << 23))
|
if (mmu_read_C1() & (1 << 23))
|
||||||
smalltype = MMU_L2_TYPE_SMALLNEW;
|
smallType = MMU_L2_TYPE_SMALLNEW;
|
||||||
else
|
else
|
||||||
smalltype = MMU_L2_TYPE_SMALLEXT;
|
smallType = MMU_L2_TYPE_SMALLEXT;
|
||||||
|
|
||||||
gKernelArgs.arch_args.phys_pgdir = (uint32)sPageDirectory;
|
gKernelArgs.arch_args.phys_pgdir = (uint32)sPageDirectory;
|
||||||
|
|
||||||
// clear out the pgdir
|
// clear out the page directory
|
||||||
for (uint32 i = 0; i < 4096; i++)
|
for (uint32 i = 0; i < 4096; i++)
|
||||||
sPageDirectory[i] = 0;
|
sPageDirectory[i] = 0;
|
||||||
|
|
||||||
@@ -305,7 +305,7 @@ init_page_directory()
|
|||||||
|
|
||||||
int c = 0;
|
int c = 0;
|
||||||
while (pos < LOADER_MEMORYMAP[i].end) {
|
while (pos < LOADER_MEMORYMAP[i].end) {
|
||||||
pageTable[c] = pos | LOADER_MEMORYMAP[i].flags | smalltype;
|
pageTable[c] = pos | LOADER_MEMORYMAP[i].flags | smallType;
|
||||||
|
|
||||||
c++;
|
c++;
|
||||||
if (c > 255) { // we filled a pagetable => we need a new one
|
if (c > 255) { // we filled a pagetable => we need a new one
|
||||||
|
|||||||
Reference in New Issue
Block a user