init_32.c (d9214556b11a8d18ff588e60824c12041d30f791) init_32.c (fd9409343521eac22b6ed51686128a643c7c976b)
1/*
2 *
3 * Copyright (C) 1995 Linus Torvalds
4 *
5 * Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999
6 */
7
8#include <linux/module.h>

--- 320 unchanged lines hidden (view full) ---

329{
330 if (pagenr <= 256)
331 return 1;
332 if (!page_is_ram(pagenr))
333 return 1;
334 return 0;
335}
336
1/*
2 *
3 * Copyright (C) 1995 Linus Torvalds
4 *
5 * Support of BIGMEM added by Gerhard Wichert, Siemens AG, July 1999
6 */
7
8#include <linux/module.h>

--- 320 unchanged lines hidden (view full) ---

329{
330 if (pagenr <= 256)
331 return 1;
332 if (!page_is_ram(pagenr))
333 return 1;
334 return 0;
335}
336
337#ifdef CONFIG_HIGHMEM
338pte_t *kmap_pte;
339pgprot_t kmap_prot;
340
341static inline pte_t *kmap_get_fixmap_pte(unsigned long vaddr)
342{
343 return pte_offset_kernel(pmd_offset(pud_offset(pgd_offset_k(vaddr),
344 vaddr), vaddr), vaddr);
345}

--- 6 unchanged lines hidden (view full) ---

352 * Cache the first kmap pte:
353 */
354 kmap_vstart = __fix_to_virt(FIX_KMAP_BEGIN);
355 kmap_pte = kmap_get_fixmap_pte(kmap_vstart);
356
357 kmap_prot = PAGE_KERNEL;
358}
359
337pte_t *kmap_pte;
338pgprot_t kmap_prot;
339
340static inline pte_t *kmap_get_fixmap_pte(unsigned long vaddr)
341{
342 return pte_offset_kernel(pmd_offset(pud_offset(pgd_offset_k(vaddr),
343 vaddr), vaddr), vaddr);
344}

--- 6 unchanged lines hidden (view full) ---

351 * Cache the first kmap pte:
352 */
353 kmap_vstart = __fix_to_virt(FIX_KMAP_BEGIN);
354 kmap_pte = kmap_get_fixmap_pte(kmap_vstart);
355
356 kmap_prot = PAGE_KERNEL;
357}
358
359#ifdef CONFIG_HIGHMEM
360static void __init permanent_kmaps_init(pgd_t *pgd_base)
361{
362 unsigned long vaddr;
363 pgd_t *pgd;
364 pud_t *pud;
365 pmd_t *pmd;
366 pte_t *pte;
367

--- 63 unchanged lines hidden (view full) ---

431{
432 add_highpages_with_active_regions(0, highstart_pfn, highend_pfn);
433
434 totalram_pages += totalhigh_pages;
435}
436#endif /* !CONFIG_NUMA */
437
438#else
360static void __init permanent_kmaps_init(pgd_t *pgd_base)
361{
362 unsigned long vaddr;
363 pgd_t *pgd;
364 pud_t *pud;
365 pmd_t *pmd;
366 pte_t *pte;
367

--- 63 unchanged lines hidden (view full) ---

431{
432 add_highpages_with_active_regions(0, highstart_pfn, highend_pfn);
433
434 totalram_pages += totalhigh_pages;
435}
436#endif /* !CONFIG_NUMA */
437
438#else
439# define kmap_init() do { } while (0)
440# define permanent_kmaps_init(pgd_base) do { } while (0)
441# define set_highmem_pages_init() do { } while (0)
442#endif /* CONFIG_HIGHMEM */
443
444void __init native_pagetable_setup_start(pgd_t *base)
445{
446 unsigned long pfn, va;
447 pgd_t *pgd;

--- 739 unchanged lines hidden ---
439# define permanent_kmaps_init(pgd_base) do { } while (0)
440# define set_highmem_pages_init() do { } while (0)
441#endif /* CONFIG_HIGHMEM */
442
443void __init native_pagetable_setup_start(pgd_t *base)
444{
445 unsigned long pfn, va;
446 pgd_t *pgd;

--- 739 unchanged lines hidden ---