summaryrefslogtreecommitdiff
path: root/ldlinux.asm
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 /ldlinux.asm
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 'ldlinux.asm')
-rw-r--r--ldlinux.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/ldlinux.asm b/ldlinux.asm
index 3cfa13e2..7d7b8f23 100644
--- a/ldlinux.asm
+++ b/ldlinux.asm
@@ -1060,6 +1060,15 @@ search_dos_dir:
ret
;
+; close_file:
+; Deallocates a file structure (pointer in SI)
+; Assumes CS == DS.
+;
+close_file:
+ mov dword [si],0 ; First dword == file_left
+ ret
+
+;
; searchdir:
;
; Open a file