summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlmuHS <almuhs@github.com>2019-05-31 20:53:14 +0200
committerAlmuHS <almuhs@github.com>2019-05-31 20:53:14 +0200
commitc62d76bbce6f072075b36027ac6f739526d8c727 (patch)
treed15b42b6054a9d33c3036b19728f0742d4aade98
parent1f2c55c5e8a791644354a5c2bcf6de29c1732d1e (diff)
Revert "experiment: change movl to mov in cr0"
This reverts commit 1f2c55c5e8a791644354a5c2bcf6de29c1732d1e. experiment failed
-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 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))