summaryrefslogtreecommitdiffstats
path: root/arch/mips64/sgi-ip27
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-06-26 23:09:22 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-06-26 23:09:22 +0000
commit5ba8d2c6b76ceb5b7cf229c4e30f0b880aeefc5d (patch)
tree0f126991af8c416755d89652890decbbe85a4118 /arch/mips64/sgi-ip27
parent1e06cd329da230702f8426be546410f0f5cde959 (diff)
Delete pmd_present/pgd_present. Explain pgd/pmd/pte allocation and
initialization. Make sure to allocate only one page for the page table (prevent memory leaks), since only one page is freed up.
Diffstat (limited to 'arch/mips64/sgi-ip27')
-rw-r--r--arch/mips64/sgi-ip27/ip27-memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips64/sgi-ip27/ip27-memory.c b/arch/mips64/sgi-ip27/ip27-memory.c
index ff218d1d2..ddc01c1f1 100644
--- a/arch/mips64/sgi-ip27/ip27-memory.c
+++ b/arch/mips64/sgi-ip27/ip27-memory.c
@@ -249,7 +249,7 @@ void __init paging_init(void)
/* Initialize the entire pgd. */
pgd_init((unsigned long)swapper_pg_dir);
pmd_init((unsigned long)invalid_pmd_table);
- memset((void *)invalid_pte_table, 0, sizeof(pte_t) * 2 * PTRS_PER_PTE);
+ memset((void *)invalid_pte_table, 0, sizeof(pte_t) * PTRS_PER_PTE);
for (node = 0; node < numnodes; node++) {
pfn_t start_pfn = slot_getbasepfn(node, 0);