linux/arch/i386/boot/setup.S : lilo loaded sectors

=?iso-8859-1?Q?Mika_Penttil=E4?= (mjp@iki.fi)
Fri, 3 Dec 1999 13:00:03 +0200


In the 2.3.29 source file linux/arch/i386/boot/setup.S there's code like below :

# Move rest of setup code/data to here
---> movw $4096, %di # four sectors loaded by LILO <---
subw %si, %si
movw %cs, %ax # aka SETUPSEG
movw %ax, %es
movw $SYSSEG, %ax
movw %ax, %ds
rep
movsw

I wonder why there's the movw $4096, %di instead of movw $2048, %di (2048 == 4 x 512) ?

--Mika

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/