From: hpa Date: Sat, 22 Nov 2003 05:45:21 +0000 (+0000) Subject: Fix invalid double-use of the edx register in parse_dhcp_options X-Git-Tag: syslinux-3.11~505 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a87ce1c8221d32083715d13d53368c1b41f320e;p=platform%2Fupstream%2Fsyslinux.git Fix invalid double-use of the edx register in parse_dhcp_options --- diff --git a/pxelinux.asm b/pxelinux.asm index 802118b..fdc5780 100644 --- a/pxelinux.asm +++ b/pxelinux.asm @@ -2149,15 +2149,15 @@ parse_some_dhcp_options: cmp dl,1 ; SUBNET MASK option jne .not_subnet - mov edx,[si] - mov [Netmask],edx + mov ebx,[si] + mov [Netmask],ebx jmp .opt_done .not_subnet: cmp dl,3 ; ROUTER option jne .not_router - mov edx,[si] - mov [Gateway],edx + mov ebx,[si] + mov [Gateway],ebx jmp .opt_done .not_router: @@ -2173,8 +2173,8 @@ parse_some_dhcp_options: cmp dl,52 ; OPTION OVERLOAD option jne .not_overload - mov dl,[si] - mov [OverLoad],dl + mov bl,[si] + mov [OverLoad],bl jmp .opt_done .not_overload: @@ -2214,11 +2214,11 @@ parse_some_dhcp_options: jne .not_pl_timeout cmp al,4 jne .opt_done - mov edx,[si] - xchg dl,dh ; Convert to host byte order - rol edx,16 - xchg dl,dh - mov [RebootTime],edx + mov ebx,[si] + xchg bl,bh ; Convert to host byte order + rol ebx,16 + xchg bl,bh + mov [RebootTime],ebx or byte [DHCPMagic], byte 8 ; Got RebootTime ; jmp short .opt_done .not_pl_timeout: