memdisk: Use boot_lba logic for booting an offset within the disk image
authorShao Miller <shao.miller@yrdsb.edu.on.ca>
Fri, 20 Nov 2009 01:49:34 +0000 (20:49 -0500)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 20 Nov 2009 04:15:07 +0000 (20:15 -0800)
commitdee8f891599f2497e194e086f6603b00291ce033
treed6b40df09a1fae212746420f380f102cb4687cc5
parenta59acfdc096be06d1319ee4010eea8abc7b9824e
memdisk: Use boot_lba logic for booting an offset within the disk image

We have two fundamental quantities: the offset of the disk image
itself and the LBA from which we boot.  Keep them straight.  This
should make at least some no-emulation isos work correctly.

Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
memdisk/setup.c