From c62d76bbce6f072075b36027ac6f739526d8c727 Mon Sep 17 00:00:00 2001 From: AlmuHS Date: Fri, 31 May 2019 20:53:14 +0200 Subject: Revert "experiment: change movl to mov in cr0" This reverts commit 1f2c55c5e8a791644354a5c2bcf6de29c1732d1e. experiment failed --- 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 61dac8d2..a101f2f4 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); - mov %cr0, %eax - or $(CR0_PG | CR0_WP), %eax - mov %eax, %cr0 + movl %cr0, %eax + orl $(CR0_PG | CR0_WP), %eax + movl %eax, %cr0 //set_cr0(get_cr0() & ~(CR0_CD | CR0_NW)); - mov %cr0, %eax - and $(~(CR0_CD | CR0_NW)), %eax - mov %eax, %cr0 + movl %cr0, %eax + andl $(~(CR0_CD | CR0_NW)), %eax + movl %eax, %cr0 //if (CPU_HAS_FEATURE(CPU_FEATURE_PGE)) -- cgit v1.2.3