Subversion Repositories HelenOS-historic

Rev

Rev 141 | Rev 391 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 141 Rev 309
Line 60... Line 60...
60
    "Unknown Vendor",
60
    "Unknown Vendor",
61
    "AuthenticAMD",
61
    "AuthenticAMD",
62
    "GenuineIntel"
62
    "GenuineIntel"
63
};
63
};
64
 
64
 
65
void set_TS_flag(void)
65
void fpu_disable(void)
66
{
66
{
67
    asm
67
    __asm__ volatile (
68
    (
-
 
69
        "mov %%cr0,%%eax;"
68
        "mov %%cr0,%%eax;"
70
        "or $8,%%eax;"
69
        "or $8,%%eax;"
71
        "mov %%eax,%%cr0;"
70
        "mov %%eax,%%cr0;"
72
        :
71
        :
73
        :
72
        :
74
        :"%eax"
73
        :"%eax"
75
    );
74
    );
76
}
75
}
77
 
76
 
78
void reset_TS_flag(void)
77
void fpu_enable(void)
79
{
78
{
80
    asm
79
    __asm__ volatile (
81
    (
-
 
82
        "mov %%cr0,%%eax;"
80
        "mov %%cr0,%%eax;"
83
        "and $0xffFFffF7,%%eax;"
81
        "and $0xffFFffF7,%%eax;"
84
        "mov %%eax,%%cr0;"
82
        "mov %%eax,%%cr0;"
85
        :
83
        :
86
        :
84
        :