Subversion Repositories HelenOS

Rev

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

Rev 2071 Rev 2082
Line 130... Line 130...
130
 
130
 
131
 
131
 
132
/* Clean IOPL(12,13) and NT(14) flags in EFLAGS register */
132
/* Clean IOPL(12,13) and NT(14) flags in EFLAGS register */
133
static void clean_IOPL_NT_flags(void)
133
static void clean_IOPL_NT_flags(void)
134
{
134
{
135
//  __asm__ volatile (
135
//  asm volatile (
136
//      "pushfl\n"
136
//      "pushfl\n"
137
//      "pop %%eax\n"
137
//      "pop %%eax\n"
138
//      "and $0xffff8fff, %%eax\n"
138
//      "and $0xffff8fff, %%eax\n"
139
//      "push %%eax\n"
139
//      "push %%eax\n"
140
//      "popfl\n"
140
//      "popfl\n"
Line 143... Line 143...
143
}
143
}
144
 
144
 
145
/* Clean AM(18) flag in CR0 register */
145
/* Clean AM(18) flag in CR0 register */
146
static void clean_AM_flag(void)
146
static void clean_AM_flag(void)
147
{
147
{
148
//  __asm__ volatile (
148
//  asm volatile (
149
//      "mov %%cr0, %%eax\n"
149
//      "mov %%cr0, %%eax\n"
150
//      "and $0xfffbffff, %%eax\n"
150
//      "and $0xfffbffff, %%eax\n"
151
//      "mov %%eax, %%cr0\n"
151
//      "mov %%eax, %%cr0\n"
152
//      : : : "eax"
152
//      : : : "eax"
153
//  );
153
//  );