| * This file is subject to the terms and conditions of the GNU General Public |
| * License. See the file "COPYING" in the main directory of this archive |
| * Copyright (C) 1999, 2000 by Silicon Graphics |
| * Copyright (C) 2003 by Ralf Baechle |
| void pgd_init(unsigned long page) |
| #ifdef __PAGETABLE_PMD_FOLDED |
| entry = (unsigned long)invalid_pte_table; |
| entry = (unsigned long)invalid_pmd_table; |
| p = (unsigned long *) page; |
| #ifndef __PAGETABLE_PMD_FOLDED |
| void pmd_init(unsigned long addr, unsigned long pagetable) |
| p = (unsigned long *) addr; |
| void __init pagetable_init(void) |
| /* Initialize the entire pgd. */ |
| pgd_init((unsigned long)swapper_pg_dir); |
| #ifndef __PAGETABLE_PMD_FOLDED |
| pmd_init((unsigned long)invalid_pmd_table, (unsigned long)invalid_pte_table); |
| pgd_base = swapper_pg_dir; |
| vaddr = __fix_to_virt(__end_of_fixed_addresses - 1) & PMD_MASK; |
| fixrange_init(vaddr, 0, pgd_base); |