commit | 172f7aaa75d0eaae167edde25c08aae9059e80fc | [log] [tgz] |
---|---|---|
author | Cyril Bur <cyrilbur@gmail.com> | Wed Sep 14 18:02:15 2016 +1000 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Tue Oct 04 20:33:17 2016 +1100 |
tree | 8c9cfd2f82424e77f5d870d2260bfd4e241c5fc2 | |
parent | d986d6f4d0ee30ad096ed7e59670f56ca8f23b57 [diff] |
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>