- Add __readcr4 to crt to compensate for MSVC bug
- Compile strnset with MSVC

svn path=/branches/cmake-bringup/; revision=49669
This commit is contained in:
Timo Kreuzer 2010-11-20 16:38:45 +00:00
parent e11826a832
commit f90a97e5a6
4 changed files with 17 additions and 8 deletions

View file

@ -336,6 +336,7 @@ list(APPEND CRT_SOURCE
mem/i386/memchr_asm.s
mem/i386/memmove_asm.s
mem/i386/memset_asm.s
misc/i386/readcr4.S
string/i386/strcat_asm.s
string/i386/strchr_asm.s
string/i386/strcmp_asm.s

View file

@ -0,0 +1,12 @@
#include <asm.inc>
.code
PUBLIC ___readcr4
___readcr4:
mov eax, cr4
ret
END

View file

@ -8,10 +8,10 @@
* 25/11/05: Added license header
*/
#ifndef _MSC_VER
#if defined(__GNUC__) && !defined(__clang__)
#define __int64 long long
#elif defined(_MSC_VER)
#pragma function(_strset)
#endif
#ifdef _WIN64
@ -52,4 +52,3 @@ char* _strset(char* szToFill, int szFill)
return t;
}
#endif