summaryrefslogtreecommitdiff
path: root/comboot.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-05-22 20:19:34 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-05-22 20:19:34 -0700
commitab1e7a46ba21c5007e29e38ec05d387458cccd6d (patch)
tree8d1a1e4fd5c8a2233059d47bcd68d05179731d89 /comboot.inc
parent8920cf3559c034c947c2dd63892c9dd25453d245 (diff)
downloadsyslinux-ab1e7a46ba21c5007e29e38ec05d387458cccd6d.tar.gz
Add a proper internal close function (close_file)
Add a "close_file" function and hook it up to the long-standing comboot API function. At the moment, all it does is free up internal resources; in particular, for PXELINUX it should also really send an ERROR packet to the server to terminate the connection on that end.
Diffstat (limited to 'comboot.inc')
-rw-r--r--comboot.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/comboot.inc b/comboot.inc
index dfb37414..4896e392 100644
--- a/comboot.inc
+++ b/comboot.inc
@@ -433,8 +433,11 @@ comapi_read:
; INT 22h AX=0008h Close file
;
comapi_close:
- ; Do nothing for now. Eventually implement
- ; an internal API for this.
+ mov si,P_SI
+ and si,si
+ jz .nothing
+ call close_file
+.nothing:
clc
ret