Author: weiden
Date: Sun Oct 1 16:33:24 2006
New Revision: 24341
URL:
http://svn.reactos.org/svn/reactos?rev=24341&view=rev
Log:
fix __writecr0, __writecr3 and __writecr4
Modified:
trunk/reactos/include/psdk/intrin.h
Modified: trunk/reactos/include/psdk/intrin.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/intrin.h?rev=…
==============================================================================
--- trunk/reactos/include/psdk/intrin.h (original)
+++ trunk/reactos/include/psdk/intrin.h Sun Oct 1 16:33:24 2006
@@ -1006,17 +1006,17 @@
static __inline__ __attribute__((always_inline)) void __writecr0(const unsigned long long
Data)
{
- __asm__("mov %[value], %%cr0" : : "q" ((const unsigned long)(Data
& 0xFFFFFFFF)));
+ __asm__("mov %%cr0, %0" : : "q" ((const unsigned long)(Data &
0xFFFFFFFF)));
}
static __inline__ __attribute__((always_inline)) void __writecr3(const unsigned long long
Data)
{
- __asm__("mov %[value], %%cr3" : : "q" ((const unsigned long)(Data
& 0xFFFFFFFF)));
+ __asm__("mov %%cr3, %0" : : "q" ((const unsigned long)(Data &
0xFFFFFFFF)));
}
static __inline__ __attribute__((always_inline)) void __writecr4(const unsigned long long
Data)
{
- __asm__("mov %[value], %%cr4" : : "q" ((const unsigned long)(Data
& 0xFFFFFFFF)));
+ __asm__("mov %%cr4, %0" : : "q" ((const unsigned long)(Data &
0xFFFFFFFF)));
}
static __inline__ __attribute__((always_inline)) void __invlpg(void * const Address)