From ff13f0e607d9a5aed2d9d697015f74d57bbe5117 Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Mon, 13 Sep 2010 19:59:03 +0000 Subject: [PATCH] 1)kernel_free: set proper return value 2)export get_timer_ticks git-svn-id: svn://kolibrios.org@1615 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/heap.inc | 3 ++- kernel/trunk/core/peload.inc | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/core/heap.inc b/kernel/trunk/core/heap.inc index 6f8dcd7626..9f7021dc57 100644 --- a/kernel/trunk/core/heap.inc +++ b/kernel/trunk/core/heap.inc @@ -635,7 +635,8 @@ proc kernel_free stdcall, base:dword pop esi ebx ret .fail: - and [heap_mutex], 0 + xor eax, eax + mov [heap_mutex], eax pop esi ebx ret endp diff --git a/kernel/trunk/core/peload.inc b/kernel/trunk/core/peload.inc index d0c844cd57..85fede96b6 100644 --- a/kernel/trunk/core/peload.inc +++ b/kernel/trunk/core/peload.inc @@ -321,6 +321,7 @@ __exports: user_free, 'UserFree', \ ; stdcall unmap_pages, 'UnmapPages', \ ; eax, ecx sys_msg_board_str, 'SysMsgBoardStr', \ + get_timer_ticks, 'GetTimerTicks', \ delay_hs, 'Delay', \ ; ebx set_mouse_data, 'SetMouseData'