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 /ldlinux.asm | |
| 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 'ldlinux.asm')
| -rw-r--r-- | ldlinux.asm | 9 |
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 |
