search for: alloc_fill_dir

Displaying 3 results from an estimated 3 matches for "alloc_fill_dir".

2009 Mar 21
0
[PATCH 1/1] SYSLINUX/COMBOOT: Abstract searchdir and fix the opendir call
...index 2ff5f33..0d4f931 100644 --- a/core/comboot.inc +++ b/core/comboot.inc @@ -1067,12 +1067,8 @@ comapi_opendir: mov di,InitRD call mangle_name pop ds - call searchdir - jnz comapi_err ; Didn't find a directory - cmp eax,0 - jz comapi_err ; Found nothing - ;ZF is unset - call alloc_fill_dir + call searchdir4dir + jz comapi_err mov P_EAX,eax mov P_CX,SECTOR_SIZE mov P_SI,si diff --git a/core/ldlinux.asm b/core/ldlinux.asm index 2219d5f..0bd7d0d 100644 --- a/core/ldlinux.asm +++ b/core/ldlinux.asm @@ -984,10 +984,10 @@ allocate_file: ; Assumes DS == ES == CS. ; ; If s...
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...+; +; INT 22h AX=0020h Open directory +; +%if IS_SYSLINUX +comapi_opendir: + push ds + mov ds,P_ES + mov si,P_SI + mov di,InitRD + call mangle_name + pop ds + call searchdir + jnz comapi_err ; Didn't find a directory + cmp eax,0 + jz comapi_err ; Found nothing + ;ZF is unset + call alloc_fill_dir + mov P_EAX,eax + mov P_CX,SECTOR_SIZE + mov P_SI,si + clc + ret +%else +comapi_opendir equ comapi_err +%endif + +; +; INT 22h AX=0021h Read directory +; +%if IS_SYSLINUX +comapi_readdir: + mov es,P_ES + mov di,P_DI + mov si,P_SI + call readdir + mov P_EAX,eax + mov P_DL,dl + mov P_EBX,...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...+; +; INT 22h AX=001Fh Open directory +; +%if IS_SYSLINUX +comapi_opendir: + push ds + mov ds,P_ES + mov si,P_SI + mov di,InitRD + call mangle_name + pop ds + call searchdir + jnz comapi_err ; Didn't find a directory + cmp eax,0 + jz comapi_err ; Found nothing + ;ZF is unset + call alloc_fill_dir + mov P_EAX,eax + mov P_CX,SECTOR_SIZE + mov P_SI,si + clc + ret +%else +comapi_opendir equ comapi_err +%endif + +; +; INT 22h AX=0020h Read directory +; +%if IS_SYSLINUX +comapi_readdir: + mov es,P_ES + mov di,P_DI + mov si,P_SI + call readdir + mov P_EAX,eax + mov P_DL,dl + mov P_EBX,...