summaryrefslogtreecommitdiff
path: root/i386/i386/cpuboot.S
diff options
context:
space:
mode:
Diffstat (limited to 'i386/i386/cpuboot.S')
-rw-r--r--i386/i386/cpuboot.S6
1 files changed, 1 insertions, 5 deletions
diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S
index beb3c78b..e5b7d543 100644
--- a/i386/i386/cpuboot.S
+++ b/i386/i386/cpuboot.S
@@ -128,11 +128,7 @@ nopae:
//set_cr0(get_cr0() & ~(CR0_CD | CR0_NW));
movl %cr0, %eax
- movl $0, %edx
- movl $CR0_CD, %edx
- orl $CR0_NW, %edx
- not %edx
- andl %edx, %eax
+ andl $(~(CR0_CD | CR0_NW)), %eax
movl %eax, %cr0