[syslinux:elflink] PXELINUX: do not use hard-coded values
syslinux-bot for Paulo Alcantara
pcacjr at zytor.com
Wed May 16 14:21:05 PDT 2012
Commit-ID: 1d4f8603a247024c93c7f9af2be44a32d3b6a888
Gitweb: http://www.syslinux.org/commit/1d4f8603a247024c93c7f9af2be44a32d3b6a888
Author: Paulo Alcantara <pcacjr at zytor.com>
AuthorDate: Sat, 28 Apr 2012 15:40:31 -0300
Committer: Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Sat, 12 May 2012 00:56:22 -0300
PXELINUX: do not use hard-coded values
PXENV_RESTART_TFTP and PXENV_FILE_EXEC flags are already declared in
core/pxe.inc, so we don't need to use hard-coded values there.
Signed-off-by: Paulo Alcantara <pcacjr at zytor.com>
---
core/pxelinux.asm | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/core/pxelinux.asm b/core/pxelinux.asm
index 8dc4041..e59a0e2 100644
--- a/core/pxelinux.asm
+++ b/core/pxelinux.asm
@@ -397,9 +397,9 @@ pxenv:
pushad
; We may be removing ourselves from memory
- cmp bx,0073h ; PXENV_RESTART_TFTP
+ cmp bx,PXENV_RESTART_TFTP
jz .disable_timer
- cmp bx,00E5h ; gPXE PXENV_FILE_EXEC
+ cmp bx,PXENV_FILE_EXEC
jnz .store_stack
.disable_timer:
@@ -434,9 +434,9 @@ pxenv:
popad
; If the call failed, it could return.
- cmp bx,0073h
+ cmp bx,PXENV_RESTART_TFTP
jz .enable_timer
- cmp bx,00E5h
+ cmp bx,PXENV_FILE_EXEC
jnz .pop_flags
.enable_timer:
More information about the Syslinux-commits
mailing list