init.c (d585a021c0b10b0477d6b608c53e1feb8cde0507) | init.c (bb86bf28aec6d0a207ae09f38a43e94133d4d6db) |
---|---|
1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 1994 - 2000 Ralf Baechle 7 * Copyright (C) 1999, 2000 Silicon Graphics, Inc. 8 * Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com --- 90 unchanged lines hidden (view full) --- 99 } 100 101 size = PAGE_SIZE << order; 102 zero_page_mask = (size - 1) & PAGE_MASK; 103 104 return 1UL << order; 105} 106 | 1/* 2 * This file is subject to the terms and conditions of the GNU General Public 3 * License. See the file "COPYING" in the main directory of this archive 4 * for more details. 5 * 6 * Copyright (C) 1994 - 2000 Ralf Baechle 7 * Copyright (C) 1999, 2000 Silicon Graphics, Inc. 8 * Kevin D. Kissell, kevink@mips.com and Carsten Langgaard, carstenl@mips.com --- 90 unchanged lines hidden (view full) --- 99 } 100 101 size = PAGE_SIZE << order; 102 zero_page_mask = (size - 1) & PAGE_MASK; 103 104 return 1UL << order; 105} 106 |
107/* 108 * These are almost like kmap_atomic / kunmap_atmic except they take an 109 * additional address argument as the hint. 110 */ 111 112#define kmap_get_fixmap_pte(vaddr) \ 113 pte_offset_kernel(pmd_offset(pud_offset(pgd_offset_k(vaddr), (vaddr)), (vaddr)), (vaddr)) 114 | |
115#ifdef CONFIG_MIPS_MT_SMTC 116static pte_t *kmap_coherent_pte; 117static void __init kmap_coherent_init(void) 118{ 119 unsigned long vaddr; 120 121 /* cache the first coherent kmap pte */ 122 vaddr = __fix_to_virt(FIX_CMAP_BEGIN); --- 136 unchanged lines hidden (view full) --- 259 kunmap_coherent(); 260 } else { 261 memcpy(dst, src, len); 262 if (cpu_has_dc_aliases) 263 SetPageDcacheDirty(page); 264 } 265} 266 | 107#ifdef CONFIG_MIPS_MT_SMTC 108static pte_t *kmap_coherent_pte; 109static void __init kmap_coherent_init(void) 110{ 111 unsigned long vaddr; 112 113 /* cache the first coherent kmap pte */ 114 vaddr = __fix_to_virt(FIX_CMAP_BEGIN); --- 136 unchanged lines hidden (view full) --- 251 kunmap_coherent(); 252 } else { 253 memcpy(dst, src, len); 254 if (cpu_has_dc_aliases) 255 SetPageDcacheDirty(page); 256 } 257} 258 |
267#ifdef CONFIG_HIGHMEM 268unsigned long highstart_pfn, highend_pfn; 269 270pte_t *kmap_pte; 271pgprot_t kmap_prot; 272 273static void __init kmap_init(void) 274{ 275 unsigned long kmap_vstart; 276 277 /* cache the first kmap pte */ 278 kmap_vstart = __fix_to_virt(FIX_KMAP_BEGIN); 279 kmap_pte = kmap_get_fixmap_pte(kmap_vstart); 280 281 kmap_prot = PAGE_KERNEL; 282} 283#endif /* CONFIG_HIGHMEM */ 284 | |
285void __init fixrange_init(unsigned long start, unsigned long end, 286 pgd_t *pgd_base) 287{ 288#if defined(CONFIG_HIGHMEM) || defined(CONFIG_MIPS_MT_SMTC) 289 pgd_t *pgd; 290 pud_t *pud; 291 pmd_t *pmd; 292 pte_t *pte; --- 216 unchanged lines hidden --- | 259void __init fixrange_init(unsigned long start, unsigned long end, 260 pgd_t *pgd_base) 261{ 262#if defined(CONFIG_HIGHMEM) || defined(CONFIG_MIPS_MT_SMTC) 263 pgd_t *pgd; 264 pud_t *pud; 265 pmd_t *pmd; 266 pte_t *pte; --- 216 unchanged lines hidden --- |