From 182f0c9e89b623dd8f93ea5de60d1c93c7987090 Mon Sep 17 00:00:00 2001 From: AlmuHS Date: Mon, 20 May 2019 23:51:37 +0200 Subject: fix: optimize cr0 initialize --- i386/i386/cpuboot.S | 6 +----- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3