From 1f2c55c5e8a791644354a5c2bcf6de29c1732d1e Mon Sep 17 00:00:00 2001 From: AlmuHS Date: Fri, 31 May 2019 20:50:17 +0200 Subject: experiment: change movl to mov in cr0 --- i386/i386/cpuboot.S | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/i386/i386/cpuboot.S b/i386/i386/cpuboot.S index a101f2f4..61dac8d2 100644 --- a/i386/i386/cpuboot.S +++ b/i386/i386/cpuboot.S @@ -123,14 +123,14 @@ nopae: * page-level write protection works in kernel mode. */ //set_cr0(get_cr0() | CR0_PG | CR0_WP); - movl %cr0, %eax - orl $(CR0_PG | CR0_WP), %eax - movl %eax, %cr0 + mov %cr0, %eax + or $(CR0_PG | CR0_WP), %eax + mov %eax, %cr0 //set_cr0(get_cr0() & ~(CR0_CD | CR0_NW)); - movl %cr0, %eax - andl $(~(CR0_CD | CR0_NW)), %eax - movl %eax, %cr0 + mov %cr0, %eax + and $(~(CR0_CD | CR0_NW)), %eax + mov %eax, %cr0 //if (CPU_HAS_FEATURE(CPU_FEATURE_PGE)) -- cgit v1.2.3