diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-05-22 20:19:34 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-05-22 20:19:34 -0700 |
commit | ab1e7a46ba21c5007e29e38ec05d387458cccd6d (patch) | |
tree | 8d1a1e4fd5c8a2233059d47bcd68d05179731d89 /comboot.inc | |
parent | 8920cf3559c034c947c2dd63892c9dd25453d245 (diff) | |
download | syslinux-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.inc | 7 |
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 |