/kernel/branches/Kolibri-acpi/core/malloc.inc |
---|
22,7 → 22,7 |
; |
align 4 |
malloc: |
push esi |
push ebx esi |
; nb = ((size+7)&~7)+8; |
96,7 → 96,7 |
mov ecx, mst.mutex |
call mutex_unlock |
mov eax, esi |
pop esi |
pop esi ebx |
ret |
.split: |
205,7 → 205,7 |
test eax, eax |
jz .exit |
push edi |
push ebx edi |
mov edi, eax |
add edi, -8 |
298,7 → 298,7 |
mov eax, esi |
pop esi |
.fail: |
pop edi |
pop edi ebx |
.exit: |
ret |
/kernel/branches/Kolibri-acpi/core/v86.inc |
---|
896,6 → 896,7 |
iretd |
.found: |
mov cr3, eax |
mov esi, [ebx+APPDATA.saved_esp0] |
sub word [esi-sizeof.v86_regs+v86_regs.esp], 6 |
mov ecx, [esi-sizeof.v86_regs+v86_regs.eip] |
mov word [edx], cx |
916,7 → 917,7 |
call update_counters |
lea edi, [ebx + 0x100000000 - SLOT_BASE] |
shr edi, 3 |
add edi, TASK_DATA |
add edi, CURRENT_TASK |
call find_next_task.found |
call do_change_task |
popad |