Subversion Repositories HelenOS-historic

Rev

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

Rev 22 Rev 58
Line 59... Line 59...
59
    "Unknown Vendor",
59
    "Unknown Vendor",
60
    "AuthenticAMD",
60
    "AuthenticAMD",
61
    "GenuineIntel"
61
    "GenuineIntel"
62
};
62
};
63
 
63
 
-
 
64
void set_TS_flag(void)
-
 
65
{
-
 
66
    asm
-
 
67
    (
-
 
68
        "mov %%cr0,%%eax;"
-
 
69
        "or $8,%%eax;"
-
 
70
        "mov %%eax,%%cr0;"
-
 
71
        :
-
 
72
        :
-
 
73
        :"%eax"
-
 
74
    );
-
 
75
}
-
 
76
 
-
 
77
void reset_TS_flag(void)
-
 
78
{
-
 
79
    asm
-
 
80
    (
-
 
81
        "mov %%cr0,%%eax;"
-
 
82
        "and $0xffFFffF7,%%eax;"
-
 
83
        "mov %%eax,%%cr0;"
-
 
84
        :
-
 
85
        :
-
 
86
        :"%eax"
-
 
87
    ); 
-
 
88
}
-
 
89
 
-
 
90
 
-
 
91
 
64
void cpu_arch_init(void)
92
void cpu_arch_init(void)
65
{
93
{
66
    CPU->arch.tss = tss_p;
94
    CPU->arch.tss = tss_p;
-
 
95
    CPU->arch.fpu_owner=NULL;
67
}
96
}
68
 
97
 
69
 
98
 
70
void cpu_identify(void)
99
void cpu_identify(void)
71
{
100
{