diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-10 13:37:00 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-10 13:39:57 +0200 |
commit | 751e77e06ec147046b4eae76777dc2e22774aee0 (patch) | |
tree | 0e1bc4572637f7ff4bddea7fe5b3368e0486d5c0 | |
parent | ac9a37fe1e7a4789145f65fcf5c9ad44c0f667bc (diff) | |
download | qboot-751e77e06ec147046b4eae76777dc2e22774aee0.zip qboot-751e77e06ec147046b4eae76777dc2e22774aee0.tar.gz qboot-751e77e06ec147046b4eae76777dc2e22774aee0.tar.bz2 |
enable caches at startup
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | cstart.S | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |