Rev 9958 | Rev 9967 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9958 | Rev 9964 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | format binary as "mnt" |
27 | format binary as "mnt" |
Line 28... | Line 28... | ||
28 | 28 | ||
29 | include 'macros.inc' |
29 | include 'macros.inc' |
Line 30... | Line 30... | ||
30 | include 'struct.inc' |
30 | include 'struct.inc' |
Line 31... | Line 31... | ||
31 | 31 | ||
32 | $Revision: 9958 $ |
32 | $Revision: 9964 $ |
Line 2430... | Line 2430... | ||
2430 | jne .no_who_am_i |
2430 | jne .no_who_am_i |
2431 | mov ecx, [current_slot_idx] |
2431 | mov ecx, [current_slot_idx] |
2432 | .no_who_am_i: |
2432 | .no_who_am_i: |
2433 | cmp ecx, max_processes |
2433 | cmp ecx, max_processes |
2434 | ja .nofillbuf |
2434 | ja .nofillbuf |
- | 2435 | test ecx, ecx ; slot 0 is empty, kernel threads start from 1 |
|
- | 2436 | jz .nofillbuf |
|
Line 2435... | Line 2437... | ||
2435 | 2437 | ||
2436 | ; +4: word: position of the window of thread in the window stack |
2438 | ; +4: word: position of the window of thread in the window stack |
2437 | mov ax, [WIN_STACK + ecx * 2] |
2439 | mov ax, [WIN_STACK + ecx * 2] |
2438 | mov [ebx+4], ax |
2440 | mov [ebx+4], ax |