From e87d23b1a701dbfb9525908affcbd25eecf36ae1 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Mon, 13 Feb 2006 17:52:35 +0000 Subject: [PATCH] added a panic into a loop that often causes a deadlock here git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16381 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/arch/x86/arch_vm_translation_map.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/kernel/arch/x86/arch_vm_translation_map.c b/src/system/kernel/arch/x86/arch_vm_translation_map.c index afef9873a2..c67893676d 100644 --- a/src/system/kernel/arch/x86/arch_vm_translation_map.c +++ b/src/system/kernel/arch/x86/arch_vm_translation_map.c @@ -367,6 +367,8 @@ map_tmap(vm_translation_map *map, addr_t va, addr_t pa, uint32 attributes) do { err = get_physical_page_tmap(ADDR_REVERSE_SHIFT(pd[index].addr), (addr_t *)&pt, PHYSICAL_PAGE_NO_WAIT); + // XXX this loop deadlocks + if (err) panic("map_tmap: get_physical_page_tmap failed"); } while (err < 0); index = VADDR_TO_PTENT(va);