From 7ba632508c6aeb0df9ff1ebcc6b998a24273bea1 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Tue, 18 Jun 2013 00:00:46 +0000 Subject: [PATCH] Just a quick correction of the estimated potential problem with incorrect data changes during operation. In the future, I will replace the CLI on the mutex. git-svn-id: svn://kolibrios.org@3678 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/fs/fs_lfn.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/fs/fs_lfn.inc b/kernel/trunk/fs/fs_lfn.inc index 213613204..1f819b1f8 100644 --- a/kernel/trunk/fs/fs_lfn.inc +++ b/kernel/trunk/fs/fs_lfn.inc @@ -939,7 +939,8 @@ process_replace_file_name: ; ; out ; ebp - full filename - + pushfd + cli mov ebp, [full_file_name_table] mov edi, [full_file_name_table.size] dec edi @@ -979,6 +980,7 @@ process_replace_file_name: .notfound: xor ebp, ebp .ret: + popfd ret uglobal @@ -1014,6 +1016,8 @@ sys_current_directory: mov edi, sysdir_name1 ; copying fake directory name mov ecx, 63 + pushfd + cli cld rep movsb ; terminator of name, in case if we get the inlet trash @@ -1031,6 +1035,7 @@ sys_current_directory: ; block the ability to call f.30.3 because for one session is necessary ; for us only once mov [lock_flag_for_f30_3], 1 + popfd @@: ret