]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MIPS: Fix BREAK code interpretation heuristics
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 3 Apr 2015 22:26:32 +0000 (23:26 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 Apr 2015 23:09:58 +0000 (01:09 +0200)
commitc9875032015ec94033295382a098657d4e38bf89
tree8b5ddc5544878b8885b83301911592fff5e1373c
parentf6a31da50158c1003bd487968d89a6b27ff25bb6
MIPS: Fix BREAK code interpretation heuristics

Do not lose the other half of the BREAK code where there is an upper
half.  This is so that e.g. `BREAK 7, 7' is not interpreted as a divide
by zero trap, while `BREAK 0, 7' or `BREAK 7, 0' still are.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9697/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c