diff options
Diffstat (limited to 'arch/arm/kernel/debug.S')
| -rw-r--r-- | arch/arm/kernel/debug.S | 25 | 
1 files changed, 24 insertions, 1 deletions
diff --git a/arch/arm/kernel/debug.S b/arch/arm/kernel/debug.S index 501cdbfc902..c45522c3678 100644 --- a/arch/arm/kernel/debug.S +++ b/arch/arm/kernel/debug.S @@ -101,7 +101,7 @@  #endif	/* CONFIG_CPU_V6 */ -#else +#elif !defined(CONFIG_DEBUG_SEMIHOSTING)  #include <mach/debug-macro.S>  #endif	/* CONFIG_DEBUG_ICEDCC */ @@ -156,6 +156,8 @@ hexbuf:		.space 16  		.ltorg +#ifndef CONFIG_DEBUG_SEMIHOSTING +  ENTRY(printascii)  		addruart_current r3, r1, r2  		b	2f @@ -178,3 +180,24 @@ ENTRY(printch)  		mov	r0, #0  		b	1b  ENDPROC(printch) + +#else + +ENTRY(printascii) +		mov	r1, r0 +		mov	r0, #0x04		@ SYS_WRITE0 +	ARM(	svc	#0x123456	) +	THUMB(	svc	#0xab		) +		mov	pc, lr +ENDPROC(printascii) + +ENTRY(printch) +		adr	r1, hexbuf +		strb	r0, [r1] +		mov	r0, #0x03		@ SYS_WRITEC +	ARM(	svc	#0x123456	) +	THUMB(	svc	#0xab		) +		mov	pc, lr +ENDPROC(printch) + +#endif  |