summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-05-31 20:50:17 +0200
committerAlmuHS <almuhs@github.com>2019-05-31 20:50:17 +0200
commit1f2c55c5e8a791644354a5c2bcf6de29c1732d1e (patch)
treed77f44bbf83547267944588dd505c07ed7e4ecb8
parent8461c2d4bb34f6ff61b2f583563b88948a10f6fa (diff)
experiment: change movl to mov in cr0
-rw-r--r--i386/i386/cpuboot.S12
1 files 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))