From 20a4ca93e3fff02f57028a77a0c7e8c411b5322f Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Mon, 5 Sep 2011 11:23:08 +0000 Subject: [PATCH] taskman:fix error reporting git-svn-id: svn://kolibrios.org@2157 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/taskman.inc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/kernel/trunk/core/taskman.inc b/kernel/trunk/core/taskman.inc index 643424f1c3..05e52bf0ac 100644 --- a/kernel/trunk/core/taskman.inc +++ b/kernel/trunk/core/taskman.inc @@ -127,7 +127,7 @@ proc fs_execute @@: lea eax, [filename] stdcall load_file, eax - mov ecx, -ERROR_FILE_NOT_FOUND + mov esi, -ERROR_FILE_NOT_FOUND test eax, eax jz .err_file @@ -136,13 +136,10 @@ proc fs_execute lea ebx, [hdr_cmdline] call test_app_header - mov ecx, -0x1F + mov esi, -0x1F test eax, eax jz .err_hdr - ;mov esi, new_process_loading - ;call sys_msg_board_str ; write message to message board - .wait_lock: cmp [application_table_status],0 je .get_lock @@ -159,7 +156,7 @@ proc fs_execute call get_new_process_place test eax, eax - mov ecx, -0x20 ; too many processes + mov esi, -0x20 ; too many processes jz .err mov [slot], eax @@ -194,7 +191,7 @@ proc fs_execute mov [save_cr3], ebx stdcall create_app_space,[hdr_mem],[file_base],[file_size] - mov ecx, -30 ; no memory + mov esi, -30 ; no memory test eax, eax jz .failed @@ -250,7 +247,7 @@ end if .err_file: xor eax, eax mov [application_table_status],eax - mov eax, ecx + mov eax, esi ret endp