/* * Copyright (C) 2009 Wind River Systems Inc * Implemented by fredrik.markstrom@gmail.com and ivarholmqvist@gmail.com * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. */ #include <linux/mm.h> #include <linux/sched.h> #include <asm/pgtable.h> #include <asm/cpuinfo.h> /* pteaddr: * ptbase | vpn* | zero * 31-22 | 21-2 | 1-0 * * *vpn is preserved on double fault * * tlbacc: * IG |*flags| pfn * 31-25|24-20 | 19-0 * * *crwxg * * tlbmisc: * resv |way |rd | we|pid |dbl|bad|perm|d * 31-24 |23-20 |19 | 20|17-4|3 |2 |1 |0 * */ /* * Initialize a new pgd / pmd table with invalid pointers. */
static void pgd_init(pgd_t *pgd) { unsigned long *p = (unsigned long *) pgd; int i; for (i = 0; i < USER_PTRS_PER_PGD; i += 8) { p[i + 0] = (unsigned long) invalid_pte_table; p[i + 1] = (unsigned long) invalid_pte_table; p[i + 2] = (unsigned long) invalid_pte_table; p[i + 3] = (unsigned long) invalid_pte_table; p[i + 4] = (unsigned long) invalid_pte_table; p[i + 5] = (unsigned long) invalid_pte_table; p[i + 6] = (unsigned long) invalid_pte_table; p[i + 7] = (unsigned long) invalid_pte_table; } }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Ley Foon Tan | 145 | 100.00% | 1 | 100.00% |
Total | 145 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ley Foon Tan | 77 | 100.00% | 1 | 100.00% |
Total | 77 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ley Foon Tan | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Ley Foon Tan | 258 | 100.00% | 1 | 100.00% |
Total | 258 | 100.00% | 1 | 100.00% |