forked from KolibriOS/kolibrios
small optimization.
git-svn-id: svn://kolibrios.org@1322 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ea3dc0b0b8
commit
01cfb22aca
@ -884,8 +884,8 @@ proc new_sys_threads
|
|||||||
.get_lock:
|
.get_lock:
|
||||||
mov eax, 1
|
mov eax, 1
|
||||||
xchg eax, [application_table_status]
|
xchg eax, [application_table_status]
|
||||||
cmp eax, 0
|
test eax, eax
|
||||||
jne .wait_lock
|
jnz .wait_lock
|
||||||
|
|
||||||
call set_application_table_status
|
call set_application_table_status
|
||||||
|
|
||||||
@ -934,7 +934,7 @@ proc new_sys_threads
|
|||||||
stdcall user_alloc, 4096
|
stdcall user_alloc, 4096
|
||||||
pop edx
|
pop edx
|
||||||
test eax, eax
|
test eax, eax
|
||||||
jz .failed
|
jz .failed1 ;eax=0
|
||||||
@@:
|
@@:
|
||||||
mov [edx+APPDATA.tls_base], eax
|
mov [edx+APPDATA.tls_base], eax
|
||||||
|
|
||||||
@ -943,14 +943,16 @@ proc new_sys_threads
|
|||||||
dword 0,dword 0
|
dword 0,dword 0
|
||||||
|
|
||||||
;mov esi,new_process_running
|
;mov esi,new_process_running
|
||||||
;call sys_msg_board_str ;output information about succefull startup
|
;call sys_msg_board_str ;output information about succefull startup
|
||||||
|
xor eax,eax
|
||||||
mov [application_table_status],0 ;unlock application_table_status mutex
|
mov [application_table_status],eax ;unlock application_table_status mutex
|
||||||
mov eax,[process_number] ;set result
|
mov eax,[process_number] ;set result
|
||||||
ret
|
ret
|
||||||
.failed:
|
.failed:
|
||||||
mov [application_table_status],0
|
xor eax,eax
|
||||||
mov eax,-1
|
.failed1:
|
||||||
|
mov [application_table_status],eax
|
||||||
|
dec eax ;-1
|
||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
@ -1114,9 +1116,9 @@ proc set_app_params stdcall,slot:dword, params:dword,\
|
|||||||
mov [ebx+4],eax ;set PID
|
mov [ebx+4],eax ;set PID
|
||||||
|
|
||||||
;set draw data to full screen
|
;set draw data to full screen
|
||||||
|
xor eax,eax
|
||||||
mov [ecx+0],dword 0
|
mov [ecx+0],dword eax
|
||||||
mov [ecx+4],dword 0
|
mov [ecx+4],dword eax
|
||||||
mov eax,[Screen_Max_X]
|
mov eax,[Screen_Max_X]
|
||||||
mov [ecx+8],eax
|
mov [ecx+8],eax
|
||||||
mov eax,[Screen_Max_Y]
|
mov eax,[Screen_Max_Y]
|
||||||
|
@ -65,13 +65,13 @@ floppy_fileread:
|
|||||||
|
|
||||||
mov [save_flag],0
|
mov [save_flag],0
|
||||||
mov [path_pointer_flp],edi
|
mov [path_pointer_flp],edi
|
||||||
cmp esi,0 ; return ramdisk root
|
test esi,esi ; return ramdisk root
|
||||||
jne fr_noroot_1
|
jnz fr_noroot_1
|
||||||
cmp ebx,224/16
|
cmp ebx,224/16
|
||||||
jbe fr_do_1
|
jbe fr_do_1
|
||||||
mov eax,5
|
mov eax,5
|
||||||
mov ebx,0
|
xor ebx,ebx
|
||||||
mov [flp_status],0
|
mov [flp_status],ebx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
fr_do_1:
|
fr_do_1:
|
||||||
@ -2134,7 +2134,7 @@ fs_FloppySetFileInfo:
|
|||||||
popa
|
popa
|
||||||
pop edi
|
pop edi
|
||||||
xor eax, eax
|
xor eax, eax
|
||||||
cmp [FDC_Status], 0
|
cmp [FDC_Status], al
|
||||||
jz @f
|
jz @f
|
||||||
mov al, 11
|
mov al, 11
|
||||||
@@:
|
@@:
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
;; ;;
|
;; ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
$Revision$
|
$Revision:1322 $
|
||||||
|
|
||||||
|
|
||||||
uglobal
|
uglobal
|
||||||
@ -625,8 +625,8 @@ cd_get_name:
|
|||||||
mov ebp,[cd_current_pointer_of_input_2]
|
mov ebp,[cd_current_pointer_of_input_2]
|
||||||
mov [cd_current_pointer_of_input],ebp
|
mov [cd_current_pointer_of_input],ebp
|
||||||
mov eax,[ebp]
|
mov eax,[ebp]
|
||||||
cmp eax,0 ; âõîäû çàêîí÷èëèñü?
|
test eax,eax ; âõîäû çàêîí÷èëèñü?
|
||||||
je .next_sector
|
jz .next_sector
|
||||||
cmp ebp,CDDataBuf+2048 ; áóôåð çàêîí÷èëñÿ?
|
cmp ebp,CDDataBuf+2048 ; áóôåð çàêîí÷èëñÿ?
|
||||||
jae .next_sector
|
jae .next_sector
|
||||||
movzx eax, byte [ebp]
|
movzx eax, byte [ebp]
|
||||||
|
@ -258,7 +258,7 @@ vesa12_drawbackground:
|
|||||||
mov [imax],eax
|
mov [imax],eax
|
||||||
mov eax,[draw_data+32+RECT.left]
|
mov eax,[draw_data+32+RECT.left]
|
||||||
mov ebx,[draw_data+32+RECT.top]
|
mov ebx,[draw_data+32+RECT.top]
|
||||||
mov edi,0 ;no force
|
xor edi,edi ;no force
|
||||||
|
|
||||||
v12dp3:
|
v12dp3:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user