kernel: pipes - improved synchronization

git-svn-id: svn://kolibrios.org@6929 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2017-06-16 22:47:00 +00:00
parent 65af271ccd
commit 8b1036ed49
3 changed files with 101 additions and 23 deletions

View File

@@ -88,6 +88,9 @@ sys_read:
cmp [ebp+FILED.handle], ecx
jne .fail
test [ebp+FILED.mode], F_READ
jz .fail
mov ebp, [ebp+FILED.file]
mov eax, [ebp]
jmp dword [eax+FILEOP_READ*4]
@@ -114,6 +117,8 @@ sys_write:
jne .fail
cmp [ebp+FILED.handle], ecx
jne .fail
test [ebp+FILED.mode], F_WRITE
jz .fail
mov ebp, [ebp+FILED.file]
mov eax, [ebp]