]> git.baikalelectronics.ru Git - kernel.git/commit
kgdb,powerpc: Replace hardcoded offset by BREAK_INSTR_SIZE
authorMichal Simek <monstr@monstr.eu>
Thu, 5 Aug 2010 14:22:22 +0000 (09:22 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Thu, 5 Aug 2010 14:22:22 +0000 (09:22 -0500)
commit3d8c207b0634d521e20c2c0d057ccd77203ece23
tree5655f903051db4c06f726b5f53992ea96a661bf5
parent3c548bc73efbe7360687a2c4702179b5f724cd6a
kgdb,powerpc: Replace hardcoded offset by BREAK_INSTR_SIZE

kgdb_handle_breakpoint checks the first arch_kgdb_breakpoint
which is not known by gdb that's why is necessary jump over
it. The jump lenght is equal to BREAK_INSTR_SIZE that's
why is cleaner to use defined macro instead of hardcoded
non-described offset.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/kgdb.c