diff options
author | Michal Simek <monstr@monstr.eu> | 2010-03-18 07:23:04 +0100 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-04-01 08:38:23 +0200 |
commit | 708e7153d6fc4d2e5fe15c6ccc5d2907fe8a9c8d (patch) | |
tree | e1d9f16c8006242c9f97f46e28d3610966be9f70 /arch | |
parent | ee68f1745e7734a55c8bf680f6f464205f1f15da (diff) | |
download | kernel_samsung_espresso10-708e7153d6fc4d2e5fe15c6ccc5d2907fe8a9c8d.zip kernel_samsung_espresso10-708e7153d6fc4d2e5fe15c6ccc5d2907fe8a9c8d.tar.gz kernel_samsung_espresso10-708e7153d6fc4d2e5fe15c6ccc5d2907fe8a9c8d.tar.bz2 |
microblaze: Add DEBUG option
Disable debug option in asm code.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/kernel/hw_exception_handler.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/hw_exception_handler.S b/arch/microblaze/kernel/hw_exception_handler.S index 2b86c03..6651bb4 100644 --- a/arch/microblaze/kernel/hw_exception_handler.S +++ b/arch/microblaze/kernel/hw_exception_handler.S @@ -334,6 +334,7 @@ not_in_delay_slot: addk r6, r5, r5; /* << 1 */ addk r6, r6, r6; /* << 2 */ +#ifdef DEBUG /* counting which exception happen */ lwi r5, r0, 0x200 + TOPHYS(r0_ram) addi r5, r5, 1 @@ -341,6 +342,7 @@ not_in_delay_slot: lwi r5, r6, 0x200 + TOPHYS(r0_ram) addi r5, r5, 1 swi r5, r6, 0x200 + TOPHYS(r0_ram) +#endif /* end */ /* Load the HW Exception vector */ lwi r6, r6, TOPHYS(_MB_HW_ExceptionVectorTable) |