Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/tx: allow program interruption filtering in user space

A user space program using the transactional execution facility
should be allowed to do program interrupt filtering. Do not set the
transactional-execution program-interruption-filtering override (PIFO)
bit in CR0.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

+3 -3
+3 -3
arch/s390/kernel/ptrace.c
··· 60 60 61 61 __ctl_store(cr, 0, 2); 62 62 cr_new[1] = cr[1]; 63 - /* Set or clear transaction execution TXC/PIFO bits 8 and 9. */ 63 + /* Set or clear transaction execution TXC bit 8. */ 64 64 if (task->thread.per_flags & PER_FLAG_NO_TE) 65 - cr_new[0] = cr[0] & ~(3UL << 54); 65 + cr_new[0] = cr[0] & ~(1UL << 55); 66 66 else 67 - cr_new[0] = cr[0] | (3UL << 54); 67 + cr_new[0] = cr[0] | (1UL << 55); 68 68 /* Set or clear transaction execution TDC bits 62 and 63. */ 69 69 cr_new[2] = cr[2] & ~3UL; 70 70 if (task->thread.per_flags & PER_FLAG_TE_ABORT_RAND) {