Disabled tracing and removed a bit of debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37229 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
#include "paging/x86_physical_page_mapper_large_memory.h"
|
#include "paging/x86_physical_page_mapper_large_memory.h"
|
||||||
|
|
||||||
|
|
||||||
#define TRACE_X86_PAGING_METHOD_PAE
|
//#define TRACE_X86_PAGING_METHOD_PAE
|
||||||
#ifdef TRACE_X86_PAGING_METHOD_PAE
|
#ifdef TRACE_X86_PAGING_METHOD_PAE
|
||||||
# define TRACE(x...) dprintf(x)
|
# define TRACE(x...) dprintf(x)
|
||||||
#else
|
#else
|
||||||
@@ -222,12 +222,10 @@ private:
|
|||||||
for (uint32 i = 0; i < oldPageTableCount; i++) {
|
for (uint32 i = 0; i < oldPageTableCount; i++) {
|
||||||
// allocate a page
|
// allocate a page
|
||||||
phys_addr_t physicalTable =_AllocatePage32Bit();
|
phys_addr_t physicalTable =_AllocatePage32Bit();
|
||||||
TRACE("allocated page table: %#" B_PRIxPHYSADDR "\n", physicalTable);
|
|
||||||
|
|
||||||
// put the page into the page dir
|
// put the page into the page dir
|
||||||
page_directory_entry* entry = &fPageHolePageDir[
|
page_directory_entry* entry = &fPageHolePageDir[
|
||||||
virtualBase / B_PAGE_SIZE / 1024 + i];
|
virtualBase / B_PAGE_SIZE / 1024 + i];
|
||||||
TRACE(" -> mapping in pde %p (%#lx)\n", entry, *entry);
|
|
||||||
X86PagingMethod32Bit::PutPageTableInPageDir(entry, physicalTable,
|
X86PagingMethod32Bit::PutPageTableInPageDir(entry, physicalTable,
|
||||||
B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA);
|
B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA);
|
||||||
|
|
||||||
@@ -244,11 +242,9 @@ TRACE(" -> mapping in pde %p (%#lx)\n", entry, *entry);
|
|||||||
for (uint32 i = 0; i < pagesNeeded; i++) {
|
for (uint32 i = 0; i < pagesNeeded; i++) {
|
||||||
// allocate a page
|
// allocate a page
|
||||||
phys_addr_t physicalAddress =_AllocatePage32Bit();
|
phys_addr_t physicalAddress =_AllocatePage32Bit();
|
||||||
//TRACE("allocated page: %#" B_PRIxPHYSADDR "\n", physicalAddress);
|
|
||||||
|
|
||||||
// put the page into the page table
|
// put the page into the page table
|
||||||
page_table_entry* entry = fPageHole + virtualBase / B_PAGE_SIZE + i;
|
page_table_entry* entry = fPageHole + virtualBase / B_PAGE_SIZE + i;
|
||||||
//TRACE(" -> mapping in pte %p (%#lx)\n", entry, *entry);
|
|
||||||
X86PagingMethod32Bit::PutPageTableEntryInTable(entry,
|
X86PagingMethod32Bit::PutPageTableEntryInTable(entry,
|
||||||
physicalAddress, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, 0,
|
physicalAddress, B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA, 0,
|
||||||
true);
|
true);
|
||||||
|
|||||||
Reference in New Issue
Block a user