tboot.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) tboot.c (3ed3a4f0ddffece942bb2661924d87be4ce63cb7)
1/*
2 * tboot.c: main implementation of helper functions used by kernel for
3 * runtime support of Intel(R) Trusted Execution Technology
4 *
5 * Copyright (c) 2006-2009, Intel Corporation
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,

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

130
131 pgd = pgd_offset(&tboot_mm, vaddr);
132 pud = pud_alloc(&tboot_mm, pgd, vaddr);
133 if (!pud)
134 return -1;
135 pmd = pmd_alloc(&tboot_mm, pud, vaddr);
136 if (!pmd)
137 return -1;
1/*
2 * tboot.c: main implementation of helper functions used by kernel for
3 * runtime support of Intel(R) Trusted Execution Technology
4 *
5 * Copyright (c) 2006-2009, Intel Corporation
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms and conditions of the GNU General Public License,

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

130
131 pgd = pgd_offset(&tboot_mm, vaddr);
132 pud = pud_alloc(&tboot_mm, pgd, vaddr);
133 if (!pud)
134 return -1;
135 pmd = pmd_alloc(&tboot_mm, pud, vaddr);
136 if (!pmd)
137 return -1;
138 pte = pte_alloc_map(&tboot_mm, NULL, pmd, vaddr);
138 pte = pte_alloc_map(&tboot_mm, pmd, vaddr);
139 if (!pte)
140 return -1;
141 set_pte_at(&tboot_mm, vaddr, pte, pfn_pte(pfn, prot));
142 pte_unmap(pte);
143 return 0;
144}
145
146static int map_tboot_pages(unsigned long vaddr, unsigned long start_pfn,

--- 392 unchanged lines hidden ---
139 if (!pte)
140 return -1;
141 set_pte_at(&tboot_mm, vaddr, pte, pfn_pte(pfn, prot));
142 pte_unmap(pte);
143 return 0;
144}
145
146static int map_tboot_pages(unsigned long vaddr, unsigned long start_pfn,

--- 392 unchanged lines hidden ---