Skip to content

Commit

Permalink
[int13] Do not zero %edx when jumping to a boot sector
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcb30 committed Oct 5, 2012
1 parent bab0a4c commit fcdfe81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arch/i386/image/bootsector.c
Expand Up @@ -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"
Expand Down

0 comments on commit fcdfe81

Please sign in to comment.