.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/arch/arm/mm/fault-armv.c |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 1995 Linus Torvalds |
---|
5 | 6 | * Modifications for ARM processor (c) 1995-2002 Russell King |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify |
---|
8 | | - * it under the terms of the GNU General Public License version 2 as |
---|
9 | | - * published by the Free Software Foundation. |
---|
10 | 7 | */ |
---|
11 | 8 | #include <linux/sched.h> |
---|
12 | 9 | #include <linux/kernel.h> |
---|
.. | .. |
---|
20 | 17 | #include <asm/bugs.h> |
---|
21 | 18 | #include <asm/cacheflush.h> |
---|
22 | 19 | #include <asm/cachetype.h> |
---|
23 | | -#include <asm/pgtable.h> |
---|
24 | 20 | #include <asm/tlbflush.h> |
---|
25 | 21 | |
---|
26 | 22 | #include "mm.h" |
---|
.. | .. |
---|
94 | 90 | { |
---|
95 | 91 | spinlock_t *ptl; |
---|
96 | 92 | pgd_t *pgd; |
---|
| 93 | + p4d_t *p4d; |
---|
97 | 94 | pud_t *pud; |
---|
98 | 95 | pmd_t *pmd; |
---|
99 | 96 | pte_t *pte; |
---|
.. | .. |
---|
103 | 100 | if (pgd_none_or_clear_bad(pgd)) |
---|
104 | 101 | return 0; |
---|
105 | 102 | |
---|
106 | | - pud = pud_offset(pgd, address); |
---|
| 103 | + p4d = p4d_offset(pgd, address); |
---|
| 104 | + if (p4d_none_or_clear_bad(p4d)) |
---|
| 105 | + return 0; |
---|
| 106 | + |
---|
| 107 | + pud = pud_offset(p4d, address); |
---|
107 | 108 | if (pud_none_or_clear_bad(pud)) |
---|
108 | 109 | return 0; |
---|
109 | 110 | |
---|