From 146d0a2b9d3bf147f898ffd997dc1d67cddfc7fa Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Mon, 8 Jul 2013 05:59:43 +0000 Subject: [PATCH] Restored the filtering of the system threads. git-svn-id: svn://kolibrios.org@3779 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/cpu/trunk/cpu.asm | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/programs/system/cpu/trunk/cpu.asm b/programs/system/cpu/trunk/cpu.asm index 5f15b75262..83d5fc2716 100644 --- a/programs/system/cpu/trunk/cpu.asm +++ b/programs/system/cpu/trunk/cpu.asm @@ -360,19 +360,28 @@ align 4 lea edi,[check1] test dword ch_flags,ch_flag_en pop edi - jnz @f + jnz .no_filter cmp dword [process_info_buffer+10],'ICON' + jnz @f + cmp dword [process_info_buffer+10+4],0 jz .return_1 - - cmp dword [process_info_buffer+10],'OS/I' +@@: + cmp dword [process_info_buffer+10],'IDLE' + jnz @f + cmp dword [process_info_buffer+10+4],0 jz .return_1 - +@@: + cmp word [process_info_buffer+10],'OS' + jnz @f + cmp dword [process_info_buffer+10+2],0 + jz .return_1 +@@: cmp byte [process_info_buffer+10],'@' jz .return_1 ;-------------------------------------- align 4 -@@: +.no_filter: mov edi,ecx mov [list_add],ecx ;get processor cpeed