Update stale comments. The alternate address space mapping was eliminated

when PAE support was added to i386.  The direct mapping exists on amd64.
This commit is contained in:
Alan Cox 2009-03-22 18:56:26 +00:00
parent 2c93c8f251
commit b4862e19af
2 changed files with 2 additions and 9 deletions

View File

@ -160,13 +160,7 @@ typedef u_int64_t pml4_entry_t;
#define PDESHIFT (3) #define PDESHIFT (3)
/* /*
* Address of current and alternate address space page table maps * Address of current address space page table maps and directories.
* and directories.
* XXX it might be saner to just direct map all of physical memory
* into the kernel using 2MB pages. We have enough space to do
* it (2^47 bits of KVM, while current max physical addressability
* is 2^40 physical bits). Then we can get rid of the evil hole
* in the page tables and the evil overlapping.
*/ */
#ifdef _KERNEL #ifdef _KERNEL
#define addr_PTmap (KVADDR(PML4PML4I, 0, 0, 0)) #define addr_PTmap (KVADDR(PML4PML4I, 0, 0, 0))

View File

@ -174,8 +174,7 @@ typedef uint32_t pt_entry_t;
#endif #endif
/* /*
* Address of current and alternate address space page table maps * Address of current address space page table maps and directories.
* and directories.
*/ */
#ifdef _KERNEL #ifdef _KERNEL
extern pt_entry_t PTmap[]; extern pt_entry_t PTmap[];