aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2003-01-04 05:56:02 +0000
committerhpa <hpa>2003-01-04 05:56:02 +0000
commitd4d44a3247478159d1505f3d1a8c638cf92df457 (patch)
tree342eaf3733ea0739f5bb216f04432e6b96e1ce70
parent8a1d669db54f6c21e8824f68653ff160d3ca3162 (diff)
downloadsyslinux-d4d44a3247478159d1505f3d1a8c638cf92df457.tar.gz
syslinux-d4d44a3247478159d1505f3d1a8c638cf92df457.tar.xz
syslinux-d4d44a3247478159d1505f3d1a8c638cf92df457.zip
Paranoia cleanups
-rw-r--r--pxelinux.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/pxelinux.asm b/pxelinux.asm
index c51b7641..d4153e7d 100644
--- a/pxelinux.asm
+++ b/pxelinux.asm
@@ -288,7 +288,7 @@ _start1:
push gs
mov bp,sp
- les bx,[bp+48] ; Initial !PXE structure pointer
+ les bx,[bp+48] ; ES:BX -> !PXE or PXENV+ structure
mov ax,cs
mov ds,ax
@@ -832,12 +832,12 @@ config_scan:
; AX contains the appropriate return code.
;
local_boot:
- call vgaclearmode
- xor si,si
+ mov si,cs
mov ds,si ; Restore DI
mov ss,si
- mov sp,StackBuf ; Reset the stack
+ mov esp,StackBuf ; Reset the stack
mov [LocalBootType],ax
+ call vgaclearmode
mov si,localboot_msg
call writestr
; Restore the environment we were called with
@@ -946,7 +946,7 @@ kaboom:
memory_scan_for_pxe_struct:
push ds
pusha
- xor ax,ax
+ mov ax,cs
mov ds,ax
mov si,trymempxe_msg
call writestr