Clean up an unnecessary open-coded control register values.
Unified · Split
| @@ -167,7 +167,7 @@ static void post_set(void) · 166 unmodified lines | ||
| 167 | 167 | setCx86(CX86_CCR3, ccr3); |
| 168 | 168 | |
| 169 | 169 | /* Enable caches */ |
| 170 | − write_cr0(read_cr0() & 0xbfffffff); | |
| 170 | + write_cr0(read_cr0() & ~X86_CR0_CD); | |
| 171 | 171 | |
| 172 | 172 | /* Restore value of CR4 */ |
| 173 | 173 | if (cpu_has_pge) |
| @@ -701,7 +701,7 @@ static void post_set(void) __releases(set_atomicity_lock) · 700 unmodified lines | ||
| 701 | 701 | mtrr_wrmsr(MSR_MTRRdefType, deftype_lo, deftype_hi); |
| 702 | 702 | |
| 703 | 703 | /* Enable caches */ |
| 704 | − write_cr0(read_cr0() & 0xbfffffff); | |
| 704 | + write_cr0(read_cr0() & ~X86_CR0_CD); | |
| 705 | 705 | |
| 706 | 706 | /* Restore value of CR4 */ |
| 707 | 707 | if (cpu_has_pge) |
| @@ -186,7 +186,7 @@ identity_mapped: · 185 unmodified lines | ||
| 186 | 186 | movl CP_PA_PGD(%ebx), %eax |
| 187 | 187 | movl %eax, %cr3 |
| 188 | 188 | movl %cr0, %eax |
| 189 | − orl $(1<<31), %eax | |
| 189 | + orl $X86_CR0_PG, %eax | |
| 190 | 190 | movl %eax, %cr0 |
| 191 | 191 | lea PAGE_SIZE(%edi), %esp |
| 192 | 192 | movl %edi, %eax |