PXELINUX: do not use hard-coded values
authorPaulo Alcantara <pcacjr@zytor.com>
Sat, 28 Apr 2012 18:40:31 +0000 (15:40 -0300)
committerPaulo Alcantara <pcacjr@zytor.com>
Sat, 12 May 2012 03:56:22 +0000 (00:56 -0300)
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>
core/pxelinux.asm

index 8dc4041..e59a0e2 100644 (file)
@@ -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: