/kernel/trunk/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 |