From 8c3875e438f3d18c87dd85a30f98afd6d4cd2500 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Fri, 2 Jun 2006 14:59:59 +0000 Subject: [PATCH] File system addition: fileinfo structure allows new syntax git-svn-id: svn://kolibrios.org@84 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/boot/booteng.inc | 1 + kernel/trunk/fs/fs_lfn.inc | 17 ++++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/kernel/trunk/boot/booteng.inc b/kernel/trunk/boot/booteng.inc index cfcd49dde2..f55132f3e8 100644 --- a/kernel/trunk/boot/booteng.inc +++ b/kernel/trunk/boot/booteng.inc @@ -55,6 +55,7 @@ d80x25_bottom_num = 3 novesa db "Display: EGA/CGA",13,10,0 vervesa db "Version of Vesa: Vesa x.x",13,10,0 vervesa_off=22 +msg_apm db " APM x.x ", 0 gr_mode db 186," Vesa 2.0+ 16 M LFB: [1] 640x480, [2] 800x600, " db "[3] 1024x768, [4] 1280x1024",13,10 db 186," Vesa 1.2 16 M Bnk: [5] 640x480, [6] 800x600, " diff --git a/kernel/trunk/fs/fs_lfn.inc b/kernel/trunk/fs/fs_lfn.inc index 2db058e9f4..324d2487cf 100644 --- a/kernel/trunk/fs/fs_lfn.inc +++ b/kernel/trunk/fs/fs_lfn.inc @@ -53,17 +53,24 @@ file_system_lfn: ; 1 : read folder ; 2 : create/rewrite file ; 3 : write/append to file - not implemented yet -; 4 : delete file - not implemented yet -; 5 : create directory - not implemented yet -; 6 : rename file/directory - not implemented yet -; 7 : get file attributes structure - not implemented yet -; 8 : start application - not implemented yet +; 4 : set end of file - not implemented yet +; 5 : get file attributes structure - not implemented yet +; 6 : start application - not implemented yet +; 7 : delete file - not implemented yet +; 8 : create directory - not implemented yet +; 9 : rename file/directory - not implemented yet add eax, std_application_base_address ; parse file name xchg ebx, eax lea esi, [ebx+20] lodsb + test al, al + jnz @f + mov esi, [esi] + add esi, std_application_base_address + lodsb +@@: cmp al, '/' jz @f .notfound: