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