Rev 2 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 21 | ||
---|---|---|---|
Line 236... | Line 236... | ||
236 | 236 | ||
237 | .loop: |
237 | .loop: |
238 | ;eax = current slot of process |
238 | ;eax = current slot of process |
239 | mov ecx,eax |
239 | mov ecx,eax |
240 | shl ecx,5 |
240 | shl ecx,5 |
241 | cmp byte [second_base_address+0x3000+ecx+0xa],0 ;if process running? |
241 | cmp byte [second_base_address+0x3000+ecx+0xa],9 ;if process running? |
242 | jnz .next ;slot empty or process is terminating - go to next slot |
242 | jz .next ;skip empty slots |
243 | shl ecx,3 |
243 | shl ecx,3 |
244 | cmp [second_base_address+0x80000+ecx+0xB8],ebx ;compare page directory addresses |
244 | cmp [second_base_address+0x80000+ecx+0xB8],ebx ;compare page directory addresses |
245 | jnz .next |
245 | jnz .next |
246 | inc edx ;thread found |
246 | inc edx ;thread found |