mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Fix MMU translation
git-svn-id: svn://coreboot.org/openbios/openbios-devel@204 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -83,8 +83,9 @@ mmu_translate(void)
|
||||
: "=r"(phys) : "r" (virt), "i" (ASI_DTLB_TAG_READ));
|
||||
|
||||
if (phys & 0x8000000000000000) { // Valid entry?
|
||||
PUSH(phys >> 32);
|
||||
phys &= 0x000001fffffff000;
|
||||
PUSH(phys & 0xffffffff);
|
||||
PUSH(phys >> 32);
|
||||
PUSH(0); // XXX
|
||||
PUSH(-1);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user