fault.c (065b8ced7c40bd6a4444f7005413f7af9fe6b642) fault.c (d8fee3f6fa5a49b338d9149cf498d58e024e27f9)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * OpenRISC fault.c
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *

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

13
14#include <linux/mm.h>
15#include <linux/interrupt.h>
16#include <linux/extable.h>
17#include <linux/sched/signal.h>
18#include <linux/perf_event.h>
19
20#include <linux/uaccess.h>
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * OpenRISC fault.c
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *

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

13
14#include <linux/mm.h>
15#include <linux/interrupt.h>
16#include <linux/extable.h>
17#include <linux/sched/signal.h>
18#include <linux/perf_event.h>
19
20#include <linux/uaccess.h>
21#include <asm/mmu_context.h>
21#include <asm/siginfo.h>
22#include <asm/signal.h>
23
24#define NUM_TLB_ENTRIES 64
25#define TLB_OFFSET(add) (((add) >> PAGE_SHIFT) & (NUM_TLB_ENTRIES-1))
26
22#include <asm/siginfo.h>
23#include <asm/signal.h>
24
25#define NUM_TLB_ENTRIES 64
26#define TLB_OFFSET(add) (((add) >> PAGE_SHIFT) & (NUM_TLB_ENTRIES-1))
27
27unsigned long pte_misses; /* updated by do_page_fault() */
28unsigned long pte_errors; /* updated by do_page_fault() */
29
30/* __PHX__ :: - check the vmalloc_fault in do_page_fault()
31 * - also look into include/asm/mmu_context.h
32 */
33volatile pgd_t *current_pgd[NR_CPUS];
34
35extern void __noreturn die(char *, struct pt_regs *, long);
36
37/*

--- 308 unchanged lines hidden ---
28/* __PHX__ :: - check the vmalloc_fault in do_page_fault()
29 * - also look into include/asm/mmu_context.h
30 */
31volatile pgd_t *current_pgd[NR_CPUS];
32
33extern void __noreturn die(char *, struct pt_regs *, long);
34
35/*

--- 308 unchanged lines hidden ---