From: H. Peter Anvin Date: Thu, 19 Jun 2008 17:38:15 +0000 (-0700) Subject: chain.c32: minor stylistic cleanup X-Git-Tag: syslinux-3.70-pre20~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6697cb5fbdd5cd5bbb018f63939b36edc70d0662;p=platform%2Fupstream%2Fsyslinux.git chain.c32: minor stylistic cleanup --- diff --git a/com32/modules/chain.c b/com32/modules/chain.c index f1c75c2..799954e 100644 --- a/com32/modules/chain.c +++ b/com32/modules/chain.c @@ -469,8 +469,6 @@ static void do_boot(void *boot_sector, size_t boot_size, static uint8_t swapstub[1024]; uint8_t *p; - regs->ebx.b[0] = regs->edx.b[0] = swapdrive; - /* Note: we can't rely on either INT 13h nor the dosmem vector to be correct at this stage, so we have to use an installer stub to put things in the right place. @@ -502,6 +500,7 @@ static void do_boot(void *boot_sector, size_t boot_size, regs->es = regs->esi.l = 0; regs->ecx.l = sizeof swapstub >> 2; regs->ip = 0x10; /* Installer offset */ + regs->ebx.b[0] = regs->edx.b[0] = swapdrive; if (syslinux_add_movelist(&mlist, endimage, (addr_t)swapstub, sizeof swapstub))