/kernel/branches/Kolibri-acpi/blkdev/disk.inc |
---|
1225,7 → 1225,7 |
; out: eax = 0 => no more items |
; eax != 0 => buffer pointed to by edi contains name of item |
dyndisk_enum_root: |
push ebx ; save register used in file_system_lfn |
push edx ; save register used in file_system_lfn |
mov ecx, disk_list_mutex ; it will be useful |
; 1. If this is the first call, acquire the mutex and initialize. |
test eax, eax |
1248,11 → 1248,11 |
jnz @b |
pop esi eax |
; 5. Return with eax = item. |
pop ebx ; restore register used in file_system_lfn |
pop edx ; restore register used in file_system_lfn |
ret |
.last: |
; 6. Release the mutex and return with eax = 0. |
call mutex_unlock |
xor eax, eax |
pop ebx ; restore register used in file_system_lfn |
pop edx ; restore register used in file_system_lfn |
ret |
/kernel/branches/Kolibri-acpi/core/sched.inc |
---|
294,7 → 294,7 |
cli |
mov eax, [ecx+MUTEX.wait.next] |
cmp eax, [ecx] |
cmp eax, ecx |
mov [ecx+MUTEX.count], 1 |
je @F |
/kernel/branches/Kolibri-acpi/core/v86.inc |
---|
842,7 → 842,7 |
align 4 |
v86_irq: |
; push irq/pushad/jmp v86_irq |
; eax = irq |
; ebp = irq |
lea esi, [esp+1Ch] |
lea edi, [esi+4] |
mov ecx, 8 |
849,7 → 849,7 |
std |
rep movsd |
cld |
mov edi, eax |
mov edi, ebp |
pop eax |
v86_irq2: |
mov esi, [v86_irqhooks+edi*8] ; get VM handle |
/kernel/branches/Kolibri-acpi/init.inc |
---|
432,4 → 432,3 |
endp |
/kernel/branches/Kolibri-acpi/kernel.asm |
---|
226,7 → 226,7 |
mov fs,ax |
mov gs,ax |
mov ss,ax |
mov esp,0x3ec00 ; Set stack |
mov esp,0x5ec00 ; Set stack |
; CLEAR 0x280000 - HEAP_BASE |
/kernel/branches/Kolibri-acpi/network/socket.inc |
---|
766,8 → 766,10 |
mov ebx, eax |
push ecx edx |
lea ecx, [eax + SOCKET.lock] |
call mutex_lock |
pop edx ecx |
mov eax, [ebx + SOCKET.rxDataCount] ; get count of bytes |
test eax, eax ; if count of bytes is zero.. |