]> git.karo-electronics.de Git - linux-beck.git/commit
powerpc/tm: Add TM Unavailable Exception
authorCyril Bur <cyrilbur@gmail.com>
Wed, 14 Sep 2016 08:02:15 +0000 (18:02 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Oct 2016 09:33:17 +0000 (20:33 +1100)
commit172f7aaa75d0eaae167edde25c08aae9059e80fc
tree8c9cfd2f82424e77f5d870d2260bfd4e241c5fc2
parentd986d6f4d0ee30ad096ed7e59670f56ca8f23b57
powerpc/tm: Add TM Unavailable Exception

If the kernel disables transactional memory (TM) and userspace still
tries TM related actions (TM instructions or TM SPR accesses) TM aware
hardware will cause the kernel to take a facility unavailable
exception.

Add checks for the exception being caused by illegal TM access in
userspace.

Signed-off-by: Cyril Bur <cyrilbur@gmail.com>
[mpe: Rewrite comment entirely, bugs in it are mine]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/traps.c