/* 2008-05-13: File added by Sony Corporation */
/*
 * PARTNER-Jet Linux support patch by KMC
 *
 * A definition of S/W break-point instruction
 *
 * Ver2.0	08.04.14
 *
 */

#ifndef __BRK_CODE_H__
#define __BRK_CODE_H__

#ifdef CONFIG_KMC_PATCH

#ifdef CONFIG_ARM
 #if defined(CONFIG_CPU_V6)
  #define	__KMC_BRK_CODE()	asm("	.long	0xe1200070")
 #else
  #define	__KMC_BRK_CODE()	asm("	.long	0xdeeedeee")
 #endif
#endif

#ifdef CONFIG_MIPS
 #if defined(CONFIG_CPU_TX49XX)
  #define	__KMC_BRK_CODE()	asm("	.long	0x0000000e")
 #else
  #define	__KMC_BRK_CODE()	asm("	.long	0x7000003f")
 #endif
#endif

#ifdef CONFIG_CPU_SH4
 #define	__KMC_BRK_CODE()	asm("	.long	0x003b003b")
#endif
#ifdef CONFIG_CPU_SH3
 #define	__KMC_BRK_CODE()	asm("	.long	0x00000000")
#endif

#ifdef CONFIG_AM33
 #define	__KMC_BRK_CODE()	asm("	.long	0xffffffff")
#endif

#ifndef __KMC_BRK_CODE
 #error	!! __KMC_BRK_CODE is not defined !!
#endif

#endif /* CONFIG_KMC_PATCH */

#endif
