small changes and optimization

git-svn-id: svn://kolibrios.org@1369 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Alexey Teplov (
2010-01-08 12:39:50 +00:00
parent dd75d94380
commit abfe37adc4
6 changed files with 230 additions and 346 deletions

View File

@@ -1245,7 +1245,12 @@ sys_outport:
ret
display_number:
;It is not optimization
mov eax, ebx
mov ebx, ecx
mov ecx, edx
mov edx, esi
mov esi, edi
; eax = print type, al=0 -> ebx is number
; al=1 -> ebx is pointer
; ah=0 -> display decimal
@@ -5371,9 +5376,16 @@ syscall_reserveportarea: ; ReservePortArea and FreePortArea
align 4
syscall_threads: ; CreateThreads
; eax=1 create thread
;
; ebx=thread start
; ecx=thread stack value
;
; on return : eax = pid
call sys_threads
mov [esp+36],eax
call new_sys_threads
mov [esp+32],eax
ret
align 4
@@ -5385,7 +5397,7 @@ stack_driver_stat:
; mov [check_idle_semaphore],5 ; enable these for zero delay
; call change_task ; between sent packet
mov [esp+36],eax
mov [esp+32],eax
ret
align 4