mmu.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) mmu.c (3ed3a4f0ddffece942bb2661924d87be4ce63cb7)
1/*
2 * Copyright (C) 2015 Thomas Meyer (thomas@m3y3r.de)
3 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
4 * Licensed under the GPL
5 */
6
7#include <linux/mm.h>
8#include <linux/sched.h>

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

26 pud = pud_alloc(mm, pgd, proc);
27 if (!pud)
28 goto out;
29
30 pmd = pmd_alloc(mm, pud, proc);
31 if (!pmd)
32 goto out_pmd;
33
1/*
2 * Copyright (C) 2015 Thomas Meyer (thomas@m3y3r.de)
3 * Copyright (C) 2002 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
4 * Licensed under the GPL
5 */
6
7#include <linux/mm.h>
8#include <linux/sched.h>

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

26 pud = pud_alloc(mm, pgd, proc);
27 if (!pud)
28 goto out;
29
30 pmd = pmd_alloc(mm, pud, proc);
31 if (!pmd)
32 goto out_pmd;
33
34 pte = pte_alloc_map(mm, NULL, pmd, proc);
34 pte = pte_alloc_map(mm, pmd, proc);
35 if (!pte)
36 goto out_pte;
37
38 *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT));
39 *pte = pte_mkread(*pte);
40 return 0;
41
42 out_pte:

--- 116 unchanged lines hidden ---
35 if (!pte)
36 goto out_pte;
37
38 *pte = mk_pte(virt_to_page(kernel), __pgprot(_PAGE_PRESENT));
39 *pte = pte_mkread(*pte);
40 return 0;
41
42 out_pte:

--- 116 unchanged lines hidden ---