Browse Source

[prefix] Use correct register for KEEP_IT_REAL physical address conversion

Signed-off-by: Daniel Pieczko <dpieczko@solarflare.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Daniel Pieczko 9 years ago
parent
commit
abd36b9f96
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/arch/i386/prefix/libprefix.S

+ 2
- 2
src/arch/i386/prefix/libprefix.S View File

460
 
460
 
461
 	/* Convert %ds:esi and %es:edi back to physical addresses */
461
 	/* Convert %ds:esi and %es:edi back to physical addresses */
462
 	xorl	%eax, %eax
462
 	xorl	%eax, %eax
463
-	movw	%ds, %cx
463
+	movw    %ds, %ax
464
 	shll	$4, %eax
464
 	shll	$4, %eax
465
 	addl	%eax, %esi
465
 	addl	%eax, %esi
466
 	xorl	%eax, %eax
466
 	xorl	%eax, %eax
467
-	movw	%es, %cx
467
+	movw    %es, %ax
468
 	shll	$4, %eax
468
 	shll	$4, %eax
469
 	addl	%eax, %edi
469
 	addl	%eax, %edi
470
 
470
 

Loading…
Cancel
Save