Displaying 3 results from an estimated 3 matches for "dirent_size".
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...mov [CurrentDir+dir_clust],eax
diff --git a/core/ldlinux.asm b/core/ldlinux.asm
index c7f6577..32a9d2d 100644
--- a/core/ldlinux.asm
+++ b/core/ldlinux.asm
@@ -44,6 +44,11 @@ MAX_OPEN equ (1 << MAX_OPEN_LG2)
SECTOR_SHIFT equ 9
SECTOR_SIZE equ (1 << SECTOR_SHIFT)
+DIRENT_SHIFT equ 5
+DIRENT_SIZE equ (1 << DIRENT_SHIFT)
+
+ROOT_DIR_WORD equ 0x002F
+
;
; This is what we need to do when idle
;
@@ -900,19 +906,40 @@ getfattype:
mov si,config_name ; Save configuration file name
mov di,ConfigName
call strcpy
+ mov word [CurrentDirName],ROOT_DIR_WORD ; Write '/',0 to th...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...mov [CurrentDir+dir_clust],eax
diff --git a/core/ldlinux.asm b/core/ldlinux.asm
index c7f6577..e5983b5 100644
--- a/core/ldlinux.asm
+++ b/core/ldlinux.asm
@@ -44,6 +44,11 @@ MAX_OPEN equ (1 << MAX_OPEN_LG2)
SECTOR_SHIFT equ 9
SECTOR_SIZE equ (1 << SECTOR_SHIFT)
+DIRENT_SHIFT equ 5
+DIRENT_SIZE equ (1 << DIRENT_SHIFT)
+
+ROOT_DIR_WORD equ 0x002F
+
;
; This is what we need to do when idle
;
@@ -900,19 +905,40 @@ getfattype:
mov si,config_name ; Save configuration file name
mov di,ConfigName
call strcpy
+ mov word [CurrentDirName],ROOT_DIR_WORD ; Write '/',0 to th...
2009 Mar 01
0
[PATCH 1/3] COMBOOT API: Improve readdir
...an all zero return
+ mov dx,0
+.end:
+ pop eax
+ ret
+
+;
; readdir: Read one file from a directory
;
; ES:DI -> String buffer (filename)
@@ -1550,6 +1584,7 @@ readdir:
.get_info:
mov ebx,[gs:si+28] ; length
mov dl,[gs:si+11] ; type
+ call fatattr_to_st_mode
.next_entry:
add si,DIRENT_SIZE
dec cx
diff --git a/doc/comboot.txt b/doc/comboot.txt
index 5f57da7..135a5bc 100644
--- a/doc/comboot.txt
+++ b/doc/comboot.txt
@@ -947,16 +947,17 @@ AX=0021h [3.74] Read directory
Input: AX 0020h
SI directory handle
ES:DI buffer for file name
- Output: DL Type of file
+ Output: DX Mode...