Turn on cache as first step of post.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 26 Oct 2008 03:06:23 +0000 (23:06 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 26 Oct 2008 03:06:23 +0000 (23:06 -0400)
This is needed on kvm.

src/romlayout.S

index 3eaf725d69d13805ea607a93ee054c0569b4b212..dabee9a31d7ff5c199c8df94bd7694ef82d69491 100644 (file)
 
         ORG 0xe05b
 post16:
+        // enable cache
+        movl %cr0, %eax
+        andl $0x9fffffff, %eax
+        movl %eax, %cr0
+
         // init the stack pointer
         RESET_STACK