]> git.baikalelectronics.ru Git - kernel.git/commit
microblaze: Add KGDB support
authorMichal Simek <monstr@monstr.eu>
Tue, 3 Aug 2010 09:45:08 +0000 (11:45 +0200)
committerMichal Simek <monstr@monstr.eu>
Wed, 4 Aug 2010 08:45:17 +0000 (10:45 +0200)
commitc1d00303b51e5498d5630234d945272ef6e48ef1
tree21ddc58eed5ccad856fc44dfb0ee794da41d5b16
parent7c6bf410c2830e92de1f1457a724a739a29d960a
microblaze: Add KGDB support

Kgdb uses brki r16, 0x18 instruction to call
low level _debug_exception function which save
current state to pt_regs and call microblaze_kgdb_break
function. _debug_exception should be called only from
the kernel space. User space calling is not supported
because user application debugging uses different handling.

pt_regs_to_gdb_regs loads additional special registers
which can't be changed

 * Enable KGDB in Kconfig
 * Remove ancient not-tested KGDB support
 * Remove ancient _debug_exception code from entry.S

Only MMU KGDB support is supported.

Signed-off-by: Michal Simek <monstr@monstr.eu>
CC: Jason Wessel <jason.wessel@windriver.com>
CC: John Williams <john.williams@petalogix.com>
CC: Edgar E. Iglesias <edgar.iglesias@petalogix.com>
CC: linux-kernel@vger.kernel.org
Acked-by: Jason Wessel <jason.wessel@windriver.com>
arch/microblaze/Kconfig
arch/microblaze/include/asm/exceptions.h
arch/microblaze/include/asm/kgdb.h [new file with mode: 0644]
arch/microblaze/kernel/Makefile
arch/microblaze/kernel/entry.S
arch/microblaze/kernel/exceptions.c
arch/microblaze/kernel/kgdb.c [new file with mode: 0644]
arch/microblaze/mm/fault.c