aboutsummaryrefslogtreecommitdiff
path: root/cstart.S
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-07-10 13:37:00 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2015-07-10 13:39:57 +0200
commit751e77e06ec147046b4eae76777dc2e22774aee0 (patch)
tree0e1bc4572637f7ff4bddea7fe5b3368e0486d5c0 /cstart.S
parentac9a37fe1e7a4789145f65fcf5c9ad44c0f667bc (diff)
downloadqboot-751e77e06ec147046b4eae76777dc2e22774aee0.zip
qboot-751e77e06ec147046b4eae76777dc2e22774aee0.tar.gz
qboot-751e77e06ec147046b4eae76777dc2e22774aee0.tar.bz2
enable caches at startup
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'cstart.S')
-rw-r--r--cstart.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/cstart.S b/cstart.S
index a92f1c1..9f2a269 100644
--- a/cstart.S
+++ b/cstart.S
@@ -11,7 +11,8 @@ ENTRY(pm_entry)
mov $0x7c00, %sp
mov %cr0, %eax
- or $1, %eax
+ and $~((1 << 30) | (1 << 29)), %eax # clear CD and NW
+ or $1, %al
mov %eax, %cr0
lgdtl %cs:0xff80 + gdt32_descr - pm_entry
ljmpl $8, $0xffffff80 + 2f - pm_entry