summaryrefslogtreecommitdiff
path: root/arch/um/kernel/trap-nommu.c
blob: 891a9cefa9357e7389cfb7eaa13cfb6015c5c8b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: GPL-2.0
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/signal.h>
#include <shared/kern_util.h>

int handle_page_fault(unsigned long address, unsigned long ip,
		      int is_write, int is_user, int *code_out)
{
	/* everything that's valid is already mapped in NOMMU */
	*code_out = SEGV_MAPERR;
	return -EFAULT;
}