Commit a348eab3 authored by Helge Deller's avatar Helge Deller
Browse files

parisc: make parisc_acctyp() available outside of faults.c



When adding kfence support, we need to tell kfence_handle_page_fault()
if the interrupted assembler statement is a read or write operation.

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent cf2ec789
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ void parisc_terminate(char *msg, struct pt_regs *regs,
void die_if_kernel(char *str, struct pt_regs *regs, long err);

/* mm/fault.c */
unsigned long parisc_acctyp(unsigned long code, unsigned int inst);
const char *trap_name(unsigned long code);
void do_page_fault(struct pt_regs *regs, unsigned long code,
		unsigned long address);
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ int show_unhandled_signals = 1;
 *   VM_WRITE if write operation
 *   VM_EXEC  if execute operation
 */
static unsigned long
unsigned long
parisc_acctyp(unsigned long code, unsigned int inst)
{
	if (code == 6 || code == 16)