[U-Boot-Users] about embedded assembly
sun
hziee_sun at yahoo.com.cn
Thu Aug 2 14:07:23 CEST 2007
hello,all
The following program is from MARVELL U-Boot
if(mvCtrlModelGet() == MV_5281_DEV_ID) /* Orion 2 */
{
__asm__ __volatile__("mrc p15, 0, %0, c14, c0, 0" : "=r" (temp):: "memory");
if (temp & 0x10000000)
{
printf("CPU: Write allocate enabled\n");
}
else
{
printf("CPU: Write allocate Disabled\n");
}
}
I don't understand what's the following sentense mean,please detailed explain it,thanks
__asm__ __volatile__("mrc p15, 0, %0, c14, c0, 0" : "=r" (temp):: "memory");
---------------------------------
抢注雅虎免费邮箱3.5G容量,20M附件!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20070802/ad2c3664/attachment.htm
More information about the U-Boot
mailing list