summaryrefslogtreecommitdiff
path: root/core/comboot.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-03-06 11:55:57 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-03-06 11:55:57 -0800
commite375515ddc712f1f69ee21337db2a3267caa5d49 (patch)
tree234cecab51fe9bfb341289ce0d0620543f77f047 /core/comboot.inc
parentead9bc6ff2fdfffc2f0974bb8de02f54a7671922 (diff)
downloadsyslinux-e375515ddc712f1f69ee21337db2a3267caa5d49.tar.gz
Add 32-bit versions of open file/close file
Add 32-bit API calls for open file and close file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/comboot.inc')
-rw-r--r--core/comboot.inc17
1 files changed, 3 insertions, 14 deletions
diff --git a/core/comboot.inc b/core/comboot.inc
index c42df807..7e4c3d6f 100644
--- a/core/comboot.inc
+++ b/core/comboot.inc
@@ -63,7 +63,7 @@
; Looks like a COMBOOT image but too large
comboot_too_large:
- pm_call close_file
+ pm_call pm_close_file
mov si,err_comlarge
call writestr
jmp enter_command
@@ -517,18 +517,7 @@ comapi_textmode:
; INT 22h AX=0006h Open file
;
comapi_open:
- push ds
- mov ds,P_ES
- mov si,P_SI
- mov di,InitRD
- pm_call pm_mangle_name
- pop ds
- pm_call pm_searchdir
- jz comapi_err
- mov P_EAX,eax
- mov P_CX,SECTOR_SIZE
- mov P_SI,si
- clc
+ pm_call pm_open_file
ret
;
@@ -551,7 +540,7 @@ comapi_read:
;
comapi_close:
mov si,P_SI
- pm_call close_file
+ pm_call pm_close_file
clc
ret