From 0a87ce1c8221d32083715d13d53368c1b41f320e Mon Sep 17 00:00:00 2001 From: hpa Date: Sat, 22 Nov 2003 05:45:21 +0000 Subject: Fix invalid double-use of the edx register in parse_dhcp_options --- pxelinux.asm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pxelinux.asm b/pxelinux.asm index 802118b4..fdc57809 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: -- cgit v1.2.1