From 0d97209173fab0a1b115ba339410d0502ef3f0ac Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Thu, 27 Apr 2006 06:12:46 +0000 Subject: [PATCH] File system: LFN read 58.0x100 moved to 70.0 git-svn-id: svn://kolibrios.org@72 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/syscall.inc | 2 +- kernel/trunk/fs/fs.inc | 4 ---- kernel/trunk/fs/fs_lfn.inc | 20 ++++++++++---------- kernel/trunk/fs/fs_v2.inc | 9 --------- 4 files changed, 11 insertions(+), 24 deletions(-) delete mode 100644 kernel/trunk/fs/fs_v2.inc diff --git a/kernel/trunk/core/syscall.inc b/kernel/trunk/core/syscall.inc index f9a0e9e4a8..f19d69ba3d 100644 --- a/kernel/trunk/core/syscall.inc +++ b/kernel/trunk/core/syscall.inc @@ -138,7 +138,7 @@ iglobal dd sys_window_move ; 67-Window move or resize dd sys_internal_services ; 68-Some internal services dd sys_debug_services ; 69-Debug - dd file_system_v2 ; 70-Common file system interface, version 2 + dd file_system_lfn ; 70-Common file system interface, version 2 times 255 - ( ($-servetable) /4 ) dd undefined_syscall diff --git a/kernel/trunk/fs/fs.inc b/kernel/trunk/fs/fs.inc index 2355e489de..526bed278b 100644 --- a/kernel/trunk/fs/fs.inc +++ b/kernel/trunk/fs/fs.inc @@ -87,10 +87,6 @@ file_system: ; Extract parameters add eax, std_application_base_address ; abs start of info block -; \begin{diamond} - cmp byte [eax+1], 1 - jz file_system_lfn -; \end{diamond} cmp dword [eax+0],12 ; Get file size je fs_read diff --git a/kernel/trunk/fs/fs_lfn.inc b/kernel/trunk/fs/fs_lfn.inc index b8c90e4641..55749de9da 100644 --- a/kernel/trunk/fs/fs_lfn.inc +++ b/kernel/trunk/fs/fs_lfn.inc @@ -1,4 +1,4 @@ -; System function 58, subfunctions 1xx +; System function 70 - files with long names (LFN) ; diamond, 2006 iglobal @@ -26,15 +26,15 @@ endg file_system_lfn: ; in: eax->fileinfo block ; operation codes: -; 0x100 : read file -; 0x101 : rewrite file - not implemented yet -; 0x102 : delete file - not implemented yet -; 0x103 : write/append to file - not implemented yet -; 0x104 : create directory - not implemented yet -; 0x105 : rename file/directory - not implemented yet -; 0x106 : get file attributes structure - not implemented yet -; 0x107 : start application - not implemented yet -; 0x108 : find file with mask - not implemented yet +; 0 : read file +; 1 : rewrite file - not implemented yet +; 2 : delete file - not implemented yet +; 3 : write/append to file - not implemented yet +; 4 : create directory - not implemented yet +; 5 : rename file/directory - not implemented yet +; 6 : get file attributes structure - not implemented yet +; 7 : start application - not implemented yet +; 8 : find file with mask - not implemented yet ; parse file name xchg ebx, eax diff --git a/kernel/trunk/fs/fs_v2.inc b/kernel/trunk/fs/fs_v2.inc deleted file mode 100644 index deffcec322..0000000000 --- a/kernel/trunk/fs/fs_v2.inc +++ /dev/null @@ -1,9 +0,0 @@ -;**************************************************************************** -;* System service for filesystem call, version 2 -;* -;* 22.04.05 Reserved call function 70 - Mario79 -;**************************************************************************** - -file_system_v2: - - ret