~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/tile/kernel/machine_kexec.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
        pte = hv_pte(_PAGE_KERNEL | _PAGE_HUGE_PAGE);
241
241
        pte = hv_pte_set_mode(pte, HV_PTE_MODE_CACHE_NO_L3);
242
242
 
243
 
        for (i = 0; i < pgd_index(PAGE_OFFSET); i++)
244
 
                pgtable[i] = pfn_pte(i << (HPAGE_SHIFT - PAGE_SHIFT), pte);
 
243
        for (i = 0; i < pgd_index(PAGE_OFFSET); i++) {
 
244
                unsigned long pfn = i << (HPAGE_SHIFT - PAGE_SHIFT);
 
245
                if (pfn_valid(pfn))
 
246
                        __set_pte(&pgtable[i], pfn_pte(pfn, pte));
 
247
        }
245
248
}
246
249
 
247
250