]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Make is_valid_bugaddr() more intelligent on nommu.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 19 May 2008 10:32:07 +0000 (19:32 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 19 May 2008 10:32:07 +0000 (19:32 +0900)
commit927b5d585fafdab577234aae8a9fb4714d271318
tree7f8c76824f1a555b69802f91ed9be00558cbf47a
parent33eeb166be4572898d76520bb93bbce11a76fbb9
sh: Make is_valid_bugaddr() more intelligent on nommu.

Currently is_valid_bugaddr() is true for anything >= PAGE_OFFSET, which
happens to be 0 on nommu configurations. Make this a bit smarter by just
reading in the opcode and comparing it against the trap type that we
already know. Follows the logic from avr32.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/traps.c