summaryrefslogtreecommitdiff
path: root/extlinux.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 /extlinux.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 'extlinux.asm')
-rw-r--r--extlinux.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/extlinux.asm b/extlinux.asm
index c7840730..7d735073 100644
--- a/extlinux.asm
+++ b/extlinux.asm
@@ -1034,11 +1034,11 @@ ThisInode resb EXT2_GOOD_OLD_INODE_SIZE ; The most recently opened inode
section .text
;
-; close:
+; close_file:
; Deallocates a file structure (pointer in SI)
; Assumes CS == DS.
;
-close:
+close_file:
mov dword [si],0 ; First dword == file_left
ret
@@ -1099,7 +1099,7 @@ searchdir:
; Otherwise, something bad...
.err:
- call close
+ call close_file
.err_noclose:
xor eax,eax
xor si,si
@@ -1177,7 +1177,7 @@ searchdir:
.finish:
pop bx ; Adjust stack (di)
pop si
- call close ; Close directory
+ call close_file ; Close directory
pop bx ; Adjust stack (flags)
jmp .open
@@ -1204,7 +1204,7 @@ searchdir:
; It's a fast symlink
.fast_symlink:
- call close ; We've got all we need
+ call close_file ; We've got all we need
mov si,ThisInode+i_block
push di