[syslinux:master] PXELINUX: shorten code in pxenv call
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Sun Nov 14 12:55:26 PST 2010
Commit-ID: 5a8a7bf7cb8b312b9d5bf28cc17ecb4c410be2c6
Gitweb: http://syslinux.zytor.com/commit/5a8a7bf7cb8b312b9d5bf28cc17ecb4c410be2c6
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Sat, 13 Nov 2010 11:29:08 -0500
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sat, 13 Nov 2010 11:29:08 -0500
PXELINUX: shorten code in pxenv call
Now that both scenarios are clear (do/do not call timer_cleanup/
timer_init), shorten it to eliminate a needless jmp.
---
core/pxelinux.asm | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/core/pxelinux.asm b/core/pxelinux.asm
index 31741a9..e8818a6 100644
--- a/core/pxelinux.asm
+++ b/core/pxelinux.asm
@@ -369,8 +369,7 @@ pxenv:
cmp bx,0073h ; PXENV_RESTART_TFTP
jz .disable_timer
cmp bx,00E5h ; gPXE PXENV_FILE_EXEC
- jz .disable_timer
- jmp .store_stack
+ jnz .store_stack
.disable_timer:
call timer_cleanup
@@ -407,8 +406,7 @@ pxenv:
cmp bx,0073h
jz .enable_timer
cmp bx,00E5h
- jz .enable_timer
- jmp .pop_flags
+ jnz .pop_flags
.enable_timer:
call timer_init
More information about the Syslinux-commits
mailing list