Rev 287 | Rev 329 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 287 | Rev 321 | ||
---|---|---|---|
Line 206... | Line 206... | ||
206 | .err_hdr: |
206 | .err_hdr: |
207 | stdcall kernel_free,[file_base] |
207 | stdcall kernel_free,[file_base] |
208 | .err_file: |
208 | .err_file: |
209 | xor eax, eax |
209 | xor eax, eax |
210 | mov [application_table_status],eax |
210 | mov [application_table_status],eax |
- | 211 | mov eax, ecx |
|
211 | ret |
212 | ret |
212 | endp |
213 | endp |
Line 213... | Line 214... | ||
213 | 214 | ||
214 | align 4 |
215 | align 4 |
Line 949... | Line 950... | ||
949 | 950 | ||
950 | align 4 |
951 | align 4 |
951 | wait_mutex: |
952 | wait_mutex: |
952 | push eax |
953 | push eax |
- | 954 | push ebx |
|
953 | push ebx |
955 | .do_wait: |
954 | cmp dword [ebx],0 |
956 | cmp dword [ebx],0 |
955 | je .get_lock |
957 | je .get_lock |
956 | call change_task |
958 | call change_task |
957 | jmp wait_mutex |
959 | jmp .do_wait |
958 | .get_lock: |
960 | .get_lock: |
959 | mov eax, 1 |
961 | mov eax, 1 |
960 | xchg eax, [ebx] |
962 | xchg eax, [ebx] |
961 | test eax, eax |
963 | test eax, eax |
962 | jnz wait_mutex |
964 | jnz .do_wait |
963 | pop ebx |
965 | pop ebx |
964 | pop eax |
966 | pop eax |
Line 965... | Line 967... | ||
965 | ret |
967 | ret |