/kernel/trunk/core/sched.inc |
---|
4,7 → 4,8 |
align 32 |
irq0: |
save_ring3_context |
pushad |
push ds es |
mov ax, os_data |
mov ds, ax |
mov es, ax |
44,7 → 45,6 |
.waiting_for_termination: |
.waiting_for_reuse: |
.waiting_for_event: |
.suspended: |
cmp ebx, [0x3004] |
jb @f |
mov edi, 0x3000 |
55,10 → 55,6 |
inc ebx |
mov al, byte [edi+0xA] |
cmp al, 1 |
jz .suspended |
cmp al, 2 |
jz .suspended |
cmp al, 3 |
je .waiting_for_termination |
cmp al, 4 |
105,7 → 101,8 |
inc [context_counter] ;noname & halyavin |
@@: |
restore_ring3_context |
pop es ds |
popad |
iret |