mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[INTRIN]
Add a workaround for __readcr4, MSVC suffers an internal error when using the intrinsic and optimization is on. svn path=/branches/cmake-bringup/; revision=49628
This commit is contained in:
parent
c1929445d7
commit
5054fc46a3
1 changed files with 6 additions and 1 deletions
|
@ -283,7 +283,12 @@ void __writedr(unsigned reg, unsigned __int64 value);
|
|||
unsigned long __readcr0(void);
|
||||
unsigned long __readcr2(void);
|
||||
unsigned long __readcr3(void);
|
||||
unsigned long __readcr4(void);
|
||||
//unsigned long __readcr4(void);
|
||||
//#pragma intrinsic(__readcr4)
|
||||
// HACK: MSVC is broken
|
||||
unsigned long ___readcr4(void);
|
||||
#define __readcr4 ___readcr4
|
||||
|
||||
unsigned int __readdr(unsigned int reg);
|
||||
void __writedr(unsigned reg, unsigned int value);
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue