diff options
Diffstat (limited to 'crt/nt64')
-rw-r--r-- | crt/nt64/crt1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crt/nt64/crt1.c b/crt/nt64/crt1.c index 3834d32..3b49915 100644 --- a/crt/nt64/crt1.c +++ b/crt/nt64/crt1.c @@ -11,6 +11,12 @@ void __hidden __libc_loader_init(void * __main, int flags); void __hidden _start(void) { + const unsigned short fmode = 0x37f; + + __asm__ __volatile__ ( + "fldcw %0" + : : "m" (*&fmode)); + __libc_loader_init( main, __crtopt_posix |