Changeset 8253 in vbox for trunk/include
- Timestamp:
- Apr 21, 2008 8:11:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asm.h
r8245 r8253 934 934 # elif RT_INLINE_ASM_GNU_STYLE 935 935 # ifdef RT_ARCH_AMD64 936 __asm__ ("movq %%cr0, %0\t\n" : "=r" (uCR0));937 # else 938 __asm__ ("movl %%cr0, %0\t\n" : "=r" (uCR0));936 __asm__ __volatile__("movq %%cr0, %0\t\n" : "=r" (uCR0)); 937 # else 938 __asm__ __volatile__("movl %%cr0, %0\t\n" : "=r" (uCR0)); 939 939 # endif 940 940 # else … … 1004 1004 # elif RT_INLINE_ASM_GNU_STYLE 1005 1005 # ifdef RT_ARCH_AMD64 1006 __asm__ ("movq %%cr2, %0\t\n" : "=r" (uCR2));1007 # else 1008 __asm__ ("movl %%cr2, %0\t\n" : "=r" (uCR2));1006 __asm__ __volatile__("movq %%cr2, %0\t\n" : "=r" (uCR2)); 1007 # else 1008 __asm__ __volatile__("movl %%cr2, %0\t\n" : "=r" (uCR2)); 1009 1009 # endif 1010 1010 # else … … 1071 1071 # elif RT_INLINE_ASM_GNU_STYLE 1072 1072 # ifdef RT_ARCH_AMD64 1073 __asm__ ("movq %%cr3, %0\t\n" : "=r" (uCR3));1074 # else 1075 __asm__ ("movl %%cr3, %0\t\n" : "=r" (uCR3));1073 __asm__ __volatile__("movq %%cr3, %0\t\n" : "=r" (uCR3)); 1074 # else 1075 __asm__ __volatile__("movl %%cr3, %0\t\n" : "=r" (uCR3)); 1076 1076 # endif 1077 1077 # else … … 1180 1180 # elif RT_INLINE_ASM_GNU_STYLE 1181 1181 # ifdef RT_ARCH_AMD64 1182 __asm__ ("movq %%cr4, %0\t\n" : "=r" (uCR4));1183 # else 1184 __asm__ ("movl %%cr4, %0\t\n" : "=r" (uCR4));1182 __asm__ __volatile__("movq %%cr4, %0\t\n" : "=r" (uCR4)); 1183 # else 1184 __asm__ __volatile__("movl %%cr4, %0\t\n" : "=r" (uCR4)); 1185 1185 # endif 1186 1186 # else … … 1259 1259 1260 1260 # elif RT_INLINE_ASM_GNU_STYLE 1261 __asm__ ("movq %%cr8, %0\t\n" : "=r" (uCR8));1261 __asm__ __volatile__("movq %%cr8, %0\t\n" : "=r" (uCR8)); 1262 1262 # else 1263 1263 __asm … … 1505 1505 # if RT_INLINE_ASM_GNU_STYLE 1506 1506 # ifdef RT_ARCH_AMD64 1507 __asm__ ("movq %%dr7, %0\n\t" : "=r" (uDR7));1508 # else 1509 __asm__ ("movl %%dr7, %0\n\t" : "=r" (uDR7));1507 __asm__ __volatile__("movq %%dr7, %0\n\t" : "=r" (uDR7)); 1508 # else 1509 __asm__ __volatile__("movl %%dr7, %0\n\t" : "=r" (uDR7)); 1510 1510 # endif 1511 1511 # else … … 1539 1539 # if RT_INLINE_ASM_GNU_STYLE 1540 1540 # ifdef RT_ARCH_AMD64 1541 __asm__ ("movq %%dr6, %0\n\t" : "=r" (uDR6));1542 # else 1543 __asm__ ("movl %%dr6, %0\n\t" : "=r" (uDR6));1541 __asm__ __volatile__("movq %%dr6, %0\n\t" : "=r" (uDR6)); 1542 # else 1543 __asm__ __volatile__("movl %%dr6, %0\n\t" : "=r" (uDR6)); 1544 1544 # endif 1545 1545 # else … … 1574 1574 RTCCUINTREG uNewValue = 0xffff0ff0; /* 31-16 and 4-11 are 1's, 12 and 63-31 are zero. */ 1575 1575 # ifdef RT_ARCH_AMD64 1576 __asm__ ("movq %%dr6, %0\n\t"1576 __asm__ __volatile__("movq %%dr6, %0\n\t" 1577 1577 "movq %1, %%dr6\n\t" 1578 1578 : "=r" (uDR6) 1579 1579 : "r" (uNewValue)); 1580 1580 # else 1581 __asm__ ("movl %%dr6, %0\n\t"1581 __asm__ __volatile__("movl %%dr6, %0\n\t" 1582 1582 "movl %1, %%dr6\n\t" 1583 1583 : "=r" (uDR6)
Note:
See TracChangeset
for help on using the changeset viewer.