Nikolay Borisov 8203d5b628 ARM: 8052/1: unwind: Fix handling of "Pop r4-r[4+nnn],r14" opcode
The arm EABI states that unwind opcode 10100nnn means pop register r4-4[4+nnn],aditionally there is a similar unwind opcode: 10101nnn which means the same thing plus popping r14. Those two cases are handled by the unwind_exec_pop_r4_to_rN function which checks whether the 4th bit is set and does r14 popping.

However, up until now it has been checking whether the 8th bit was set (mask & 0x80) instead of the 4th (mask & 0x8), a simple to make typo but this meant that we were always popping r14 even if we had the former opcode.

This patch changes the mask so that the 2 unwind opcodes are being handled correctly.

Signed-off-by: Nikolay Borisov <Nikolay.Borisov@arm.com>
Reviewed-by: Anurag Aggarwal <anurag19aggarwal@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2014-05-25 23:44:26 +01:00
..
2014-04-12 17:26:45 -07:00
2014-05-01 10:09:47 -07:00
2014-05-20 10:59:38 +02:00
2014-05-20 10:59:37 +02:00
2014-05-15 00:30:32 +01:00
2014-05-21 17:54:55 +09:00
2014-05-20 10:59:37 +02:00
2014-05-05 15:36:59 -07:00
2014-03-18 16:39:33 -04:00