From d6ffa8cd02bb9fffe1864802730723dbce855353 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Thu, 11 Jan 2007 14:43:51 +0000 Subject: [PATCH] retry bugfix in user_alloc from revision 213 git-svn-id: svn://kolibrios.org@270 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/heap.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/trunk/core/heap.inc b/kernel/trunk/core/heap.inc index 0407691858..735f1dc47d 100644 --- a/kernel/trunk/core/heap.inc +++ b/kernel/trunk/core/heap.inc @@ -679,6 +679,7 @@ l_0: and eax, 0xFFFFF000 cmp eax, ecx ;alloc_size jb m_next + jz @f mov edx, esi add edx, ecx @@ -687,6 +688,7 @@ l_0: shr edx, 12 mov [pages_tab+edx*4], eax +@@: or ecx, USED_BLOCK mov [pages_tab+ebx*4], ecx shr ecx, 12