Fix for Bug 2975 - [GCCE] Illegal inline assembler in kernel/eka/drivers/debug/rmdebug/d_rmd_stepping.cpp GCC_SURGE
authormikek
Tue, 15 Jun 2010 15:02:48 +0100
branchGCC_SURGE
changeset 155 e28362b72ccc
parent 151 b5dd6d3f5c21
child 156 12b6722e7753
Fix for Bug 2975 - [GCCE] Illegal inline assembler in kernel/eka/drivers/debug/rmdebug/d_rmd_stepping.cpp
kernel/eka/drivers/debug/rmdebug/d_rmd_stepping.cpp
--- a/kernel/eka/drivers/debug/rmdebug/d_rmd_stepping.cpp	Tue Jun 15 13:29:38 2010 +0100
+++ b/kernel/eka/drivers/debug/rmdebug/d_rmd_stepping.cpp	Tue Jun 15 15:02:48 2010 +0100
@@ -325,7 +325,7 @@
 
 	// determine the architecture
 	TUint32 cpuid;
-	asm("mrc p15, 0, cpuid, c0, c0, 0 ");
+	asm("mrc p15, 0, %[id], c0, c0, 0 " : [id] "=r" (cpuid));
 	LOG_MSG2("DRMDStepping::PCAfterInstructionExecutes() - cpuid = 0x%08x\n",cpuid);
 
 	cpuid >>= 8;