mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
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: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
cf2ec7893f
commit
a348eab327
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user