// SPDX-License-Identifier: GPL-2.0 /* * Copyright IBM Corp. 2012 * Author(s): Jan Glauber <jang@linux.vnet.ibm.com> */ #include <linux/kernel.h> #include <linux/syscalls.h> #include <linux/signal.h> #include <linux/mm.h> #include <linux/slab.h> #include <linux/init.h> #include <linux/errno.h> #include <linux/kernel_stat.h> #include <linux/sched/task_stack.h> #include <asm/runtime_instr.h> #include <asm/cpu_mf.h> #include <asm/irq.h> /* empty control block to disable RI by loading it */ struct runtime_instr_cb runtime_instr_empty_cb;
static void disable_runtime_instr(void) { struct pt_regs *regs = task_pt_regs(current); load_runtime_instr_cb(&runtime_instr_empty_cb); /* * Make sure the RI bit is deleted from the PSW. If the user did not * switch off RI before the system call the process will get a * specification exception otherwise. */ regs->psw.mask &= ~PSW_MASK_RI; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jan Glauber | 34 | 100.00% | 1 | 100.00% |
Total | 34 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jan Glauber | 53 | 100.00% | 1 | 100.00% |
Total | 53 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jan Glauber | 44 | 100.00% | 1 | 100.00% |
Total | 44 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jan Glauber | 307 | 97.15% | 1 | 25.00% |
Martin Schwidefsky | 5 | 1.58% | 1 | 25.00% |
Ingo Molnar | 3 | 0.95% | 1 | 25.00% |
Greg Kroah-Hartman | 1 | 0.32% | 1 | 25.00% |
Total | 316 | 100.00% | 4 | 100.00% |