summaryrefslogtreecommitdiff
path: root/core/comboot.inc
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-08-28 18:27:51 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-08-28 18:27:51 +0800
commitc29a8049d462815774bbce8f80a8471a985bafcd (patch)
tree38420b5b946d76a7c44629cbd54da0a5c646d0f7 /core/comboot.inc
parent6fcebf4ed2be8de96ff106c3755c7776f1c66804 (diff)
downloadsyslinux-c29a8049d462815774bbce8f80a8471a985bafcd.tar.gz
Core: vfs-dir stuff re-implemented
We fist make it simple, as told by hpa. Here're the changes: 1, The DIR structure changed, just a file pointer included. 2. So, the open/close/read-dir stuff in com32/lib/ changed again. 3. We read one stuff from every readdir call. Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
Diffstat (limited to 'core/comboot.inc')
-rw-r--r--core/comboot.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/comboot.inc b/core/comboot.inc
index b078aa57..7f9b3a9b 100644
--- a/core/comboot.inc
+++ b/core/comboot.inc
@@ -900,6 +900,7 @@ comapi_getcwd:
; INT 22h AX=0020h Open directory
;
%if IS_SYSLINUX
+ global comapi_opendir
comapi_opendir:
mov es,P_ES
mov si,P_SI
@@ -909,8 +910,6 @@ comapi_opendir:
cmp eax,0
jz comapi_err ; Found nothing
mov P_EAX,eax
- mov P_CX,SECTOR_SIZE
- mov P_SI,si
clc
ret
%else
@@ -933,7 +932,10 @@ comapi_readdir equ comapi_err
;
; INT 22h AX=0022h Close directory
;
-comapi_closedir equ comapi_close
+comapi_closedir:
+ mov esi,P_ESI ; The address of DIR structure
+ pm_call closedir
+ ret
;
; INT 22h AX=0023h Query shuffler size