Skip to content

Commit

Permalink
microblaze: Add DEBUG option
Browse files Browse the repository at this point in the history
Disable debug option in asm code.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Apr 1, 2010
1 parent ee68f17 commit 708e715
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/microblaze/kernel/hw_exception_handler.S
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,15 @@ 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
swi r5, r0, 0x200 + TOPHYS(r0_ram)
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)
Expand Down

0 comments on commit 708e715

Please sign in to comment.