commit | 751e77e06ec147046b4eae76777dc2e22774aee0 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri Jul 10 13:37:00 2015 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Jul 10 13:39:57 2015 +0200 |
tree | 0e1bc4572637f7ff4bddea7fe5b3368e0486d5c0 | |
parent | ac9a37fe1e7a4789145f65fcf5c9ad44c0f667bc [diff] |
enable caches at startup Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
diff --git a/cstart.S b/cstart.S index a92f1c1..9f2a269 100644 --- a/cstart.S +++ b/cstart.S
@@ -11,7 +11,8 @@ 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