From 81314d998d60d34a884d35b55644f7a0f8bd8c4a Mon Sep 17 00:00:00 2001 From: "Andrey Halyavin (halyavin)" Date: Wed, 16 Nov 2005 15:39:04 +0000 Subject: [PATCH] Fixed bug in dispose_app_cr3_table: we count yourself as thread now so code must be slightly changed. git-svn-id: svn://kolibrios.org@25 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/mem.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/core/mem.inc b/kernel/trunk/core/mem.inc index 56754e0741..baa5dd7285 100644 --- a/kernel/trunk/core/mem.inc +++ b/kernel/trunk/core/mem.inc @@ -251,8 +251,8 @@ dispose_app_cr3_table: ;edx = number of threads ;our process is zombi so it isn't counted - test edx,edx - jnz .threadsexists + cmp edx,1 + jg .threadsexists ;if there isn't threads then clear memory. add edi,std_application_base_address shr 20