aboutsummaryrefslogtreecommitdiffstats
path: root/core/comboot.inc
diff options
context:
space:
mode:
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