summaryrefslogtreecommitdiff
path: root/core/bootsect.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2009-04-14 11:20:03 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2009-04-14 11:20:03 -0700
commit7c761e266caafb590e5d1c5698a1e011ebdd93ae (patch)
tree387befdea090e6dca806b6a724dd5a0c688c808e /core/bootsect.inc
parentf4f69c52bfdac6a71e090006198f5f81069c5544 (diff)
downloadsyslinux-7c761e266caafb590e5d1c5698a1e011ebdd93ae.tar.gz
pxelinux: fix the handling of KeepPXE
KeepPXE was broken in 3.74, because we tried to use both bits 0 and 1, but failed to actually test both bits. Instead, just use bit 0, but move the place where we clear the bits. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'core/bootsect.inc')
-rw-r--r--core/bootsect.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/bootsect.inc b/core/bootsect.inc
index 27809586..bb7e82e8 100644
--- a/core/bootsect.inc
+++ b/core/bootsect.inc
@@ -117,8 +117,8 @@ replace_bootstrap:
mov es,ax
%if IS_PXELINUX
- test byte [KeepPXE],01h
- jz .stdstack
+ cmp byte [KeepPXE],0
+ je .stdstack
les di,[InitStack] ; Reset stack to PXE original
jmp .stackok
%endif