diff options
| author | Michael Brown | 2012-10-05 16:02:30 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-10-05 16:04:27 +0200 |
| commit | fcdfe817644c601f40a5435c03f16a46b5264ab1 (patch) | |
| tree | 436834bc18b675a8acc6d908ad18d2c512e21c30 /src/arch | |
| parent | [efi] Mark SNP formset compliant with IBM's Unified Configuration Manager (diff) | |
| download | ipxe-fcdfe817644c601f40a5435c03f16a46b5264ab1.tar.gz ipxe-fcdfe817644c601f40a5435c03f16a46b5264ab1.tar.xz ipxe-fcdfe817644c601f40a5435c03f16a46b5264ab1.zip | |
[int13] Do not zero %edx when jumping to a boot sector
Commit 73eb3f1 ("[int13] Zero all possible registers when jumping to a
boot sector") introduced a regression preventing the SAN-booting of
boot sectors which rely upon %dl containing the correct drive number
(such as most CD-ROM boot sectors).
Fix by not zeroing %edx.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch')
| -rw-r--r-- | src/arch/i386/image/bootsector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/i386/image/bootsector.c b/src/arch/i386/image/bootsector.c index faf21c6fc..ab3cf94c2 100644 --- a/src/arch/i386/image/bootsector.c +++ b/src/arch/i386/image/bootsector.c @@ -87,7 +87,7 @@ int call_bootsector ( unsigned int segment, unsigned int offset, "xorl %%eax, %%eax\n\t" "xorl %%ebx, %%ebx\n\t" "xorl %%ecx, %%ecx\n\t" - "xorl %%edx, %%edx\n\t" + /* %edx contains drive number */ "xorl %%esi, %%esi\n\t" "xorl %%edi, %%edi\n\t" "xorl %%ebp, %%ebp\n\t" |
