traps.c (b6254ced4da6cf28d49fbffe24ee4b3286dcb3f4) traps.c (48a8ab4eeb8271f2a0e2ca3cf80844a59acca153)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
4 * Copyright 2007-2010 Freescale Semiconductor, Inc.
5 *
6 * Modified by Cort Dougan (cort@cs.nmt.edu)
7 * and Paul Mackerras (paulus@samba.org)
8 */

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

342
343 show_signal_msg(signr, regs, code, addr);
344
345 if (arch_irqs_disabled() && !arch_irq_disabled_regs(regs))
346 local_irq_enable();
347
348 current->thread.trap_nr = code;
349
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
4 * Copyright 2007-2010 Freescale Semiconductor, Inc.
5 *
6 * Modified by Cort Dougan (cort@cs.nmt.edu)
7 * and Paul Mackerras (paulus@samba.org)
8 */

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

342
343 show_signal_msg(signr, regs, code, addr);
344
345 if (arch_irqs_disabled() && !arch_irq_disabled_regs(regs))
346 local_irq_enable();
347
348 current->thread.trap_nr = code;
349
350 /*
351 * Save all the pkey registers AMR/IAMR/UAMOR. Eg: Core dumps need
352 * to capture the content, if the task gets killed.
353 */
354 thread_pkey_regs_save(&current->thread);
355
356 return true;
357}
358
359void _exception_pkey(struct pt_regs *regs, unsigned long addr, int key)
360{
361 if (!exception_common(SIGSEGV, regs, SEGV_PKUERR, addr))
362 return;
363

--- 1950 unchanged lines hidden ---
350 return true;
351}
352
353void _exception_pkey(struct pt_regs *regs, unsigned long addr, int key)
354{
355 if (!exception_common(SIGSEGV, regs, SEGV_PKUERR, addr))
356 return;
357

--- 1950 unchanged lines hidden ---