[U-Boot-Users] about embedded assembly

2 Aug
2007
2 Aug
'07
2:07 p.m.
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附件!
6490
Age (days ago)
6490
Last active (days ago)
0 comments
1 participants
participants (1)
-
sun