/kernel/trunk/core/memory.inc |
---|
936,7 → 936,7 |
jb .touch |
popf |
mov [esp+32], ebx ;ebx=0 |
mov [esp + SYSCALL_STACK.eax], ebx ;ebx=0 |
ret |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
946,11 → 946,11 |
jnz @f |
stdcall sys_ipc_send, ecx, edx, esi |
mov [esp+32], eax |
mov [esp + SYSCALL_STACK.eax], eax |
ret |
@@: |
or eax, -1 |
mov [esp+32], eax |
mov [esp + SYSCALL_STACK.eax], eax |
ret |
proc sys_ipc_send stdcall, PID:dword, msg_addr:dword, msg_size:dword |
1079,7 → 1079,7 |
mov eax, [pg_data.pages_count] |
mov [ecx], eax |
shl eax, 12 |
mov [esp+32], eax |
mov [esp + SYSCALL_STACK.eax], eax |
mov eax, [pg_data.pages_free] |
mov [ecx+4], eax |
mov eax, [pg_data.pages_faults] |
1094,7 → 1094,7 |
mov [ecx+24], eax |
ret |
.fail: |
or dword [esp+32], -1 |
or dword [esp + SYSCALL_STACK.eax], -1 |
ret |
align 4 |
/kernel/trunk/core/sched.inc |
---|
76,6 → 76,7 |
sub eax, [esi - sizeof.APPDATA + APPDATA.counter_add] ; time stamp counter add |
add [esi - sizeof.APPDATA + APPDATA.counter_sum], eax ; counter sum |
ret |
align 4 |
updatecputimes: |
mov ecx, [thread_count] |
/kernel/trunk/core/sys32.inc |
---|
525,18 → 525,18 |
jb .loop2 |
mov ecx, esi ; remove buttons |
bnewba2: |
.bnewba2: |
mov edi, [BTN_ADDR] |
mov eax, edi |
cld |
movzx ebx, word [edi] |
inc bx |
bnewba: |
.bnewba: |
dec bx |
jz bnmba |
jz .bnmba |
add eax, 0x10 |
cmp cx, [eax] |
jnz bnewba |
jnz .bnewba |
pusha |
mov ecx, ebx |
inc ecx |
546,8 → 546,8 |
call memmove |
dec dword [edi] |
popa |
jmp bnewba2 |
bnmba: |
jmp .bnewba2 |
.bnmba: |
pusha ; save window coordinates for window restoring |
cld |
662,13 → 662,13 |
shl edx, BSF sizeof.APPDATA |
mov edx, [SLOT_BASE + edx + APPDATA.tid] |
rmpr0: |
.rmpr0: |
mov esi, [RESERVED_PORTS] |
test esi, esi |
jz rmpr9 |
jz .rmpr9 |
rmpr3: |
.rmpr3: |
mov edi, esi |
shl edi, 4 |
675,14 → 675,14 |
add edi, RESERVED_PORTS |
cmp edx, [edi] |
je rmpr4 |
je .rmpr4 |
dec esi |
jnz rmpr3 |
jnz .rmpr3 |
jmp rmpr9 |
jmp .rmpr9 |
rmpr4: |
.rmpr4: |
mov ecx, 256 |
sub ecx, esi |
695,9 → 695,9 |
dec dword [RESERVED_PORTS] |
jmp rmpr0 |
jmp .rmpr0 |
rmpr9: |
.rmpr9: |
popa |
; clearing APPDATA structure this thread |