aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@zytor.com>2012-04-28 15:40:31 -0300
committerPaulo Alcantara <pcacjr@zytor.com>2012-05-12 00:56:22 -0300
commit1d4f8603a247024c93c7f9af2be44a32d3b6a888 (patch)
tree3b5417fbe6020226bdb713f47ebe566a891e9a1b
parent40cf9cf33865bca944b7edfd4a8969dec39e3c45 (diff)
downloadsyslinux-1d4f8603a247024c93c7f9af2be44a32d3b6a888.tar.gz
syslinux-1d4f8603a247024c93c7f9af2be44a32d3b6a888.tar.xz
syslinux-1d4f8603a247024c93c7f9af2be44a32d3b6a888.zip
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@zytor.com>
-rw-r--r--core/pxelinux.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/pxelinux.asm b/core/pxelinux.asm
index 8dc4041f..e59a0e2e 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: