Rev 4459 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4459 | Rev 4923 | ||
---|---|---|---|
Line 416... | Line 416... | ||
416 | destroy_thread: |
416 | destroy_thread: |
Line 417... | Line 417... | ||
417 | 417 | ||
418 | .slot equ esp+4 ;locals |
418 | .slot equ esp+4 ;locals |
Line 419... | Line -... | ||
419 | .process equ esp ;ptr to parent process |
- | |
Line 420... | Line 419... | ||
420 | 419 | .process equ esp ;ptr to parent process |
|
Line 421... | Line 420... | ||
421 | xchg bx, bx |
420 | |
422 | 421 | ||
Line 451... | Line 450... | ||
451 | mov ecx, [esi+12] |
450 | mov ecx, [esi+12] |
452 | mov [eax+SLOT_BASE+APPDATA.io_map], ecx |
451 | mov [eax+SLOT_BASE+APPDATA.io_map], ecx |
453 | mov ecx, [esi+8] |
452 | mov ecx, [esi+8] |
454 | mov [eax+SLOT_BASE+APPDATA.io_map+4], ecx |
453 | mov [eax+SLOT_BASE+APPDATA.io_map+4], ecx |
455 | .nov86: |
454 | .nov86: |
456 | ;destroy per-thread kerlen objects |
455 | ;destroy per-thread kernel objects |
457 | mov esi, [.slot] |
456 | mov esi, [.slot] |
458 | shl esi, 8 |
457 | shl esi, 8 |
459 | add esi, SLOT_BASE+APP_OBJ_OFFSET |
458 | add esi, SLOT_BASE+APP_OBJ_OFFSET |
460 | @@: |
459 | @@: |
461 | mov eax, [esi+APPOBJ.fd] |
460 | mov eax, [esi+APPOBJ.fd] |
Line 747... | Line 746... | ||
747 | add ecx, 0x100 |
746 | add ecx, 0x100 |
748 | jmp .xd0 |
747 | jmp .xd0 |
749 | .xd1: |
748 | .xd1: |
750 | ;release slot |
749 | ;release slot |
Line 751... | Line -... | ||
751 | - | ||
Line 752... | Line 750... | ||
752 | xchg bx, bx |
750 | |
Line 753... | Line 751... | ||
753 | 751 | ||
754 | bts [thr_slot_map], esi |
752 | bts [thr_slot_map], esi |