Displaying 3 results from an estimated 3 matches for "get_disk_image_geometry".
2009 Dec 09
2
[PATCH] memdisk: Fix "might be used uninitialized" warnings
...ller <shao.miller at yrdsb.edu.on.ca>
---
memdisk/setup.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/memdisk/setup.c b/memdisk/setup.c
index ea17afd..b8eadfb 100644
--- a/memdisk/setup.c
+++ b/memdisk/setup.c
@@ -592,7 +592,7 @@ static const struct geometry
*get_disk_image_geometry(uint32_t where,
while (!ok) {
/* Assume it's a floppy drive, guess a geometry */
unsigned int type, track;
- int c, h, s;
+ int c, h, s = 0;
if (xsectors < 320 * 2) {
c = 40;
@@ -795,7 +795,7 @@ static void...
2004 Jun 13
1
SYSLINUX 2.10-pre6 is now release candidate
I have decided to make SYSLINUX 2.10-pre6 a release candidate. Please
test it out if you can; if it works OK I will release it as 2.10 some
time in the middle of the week.
Thanks!
-hpa
2009 Nov 20
0
[PATCH] memdisk: Use boot_lba logic for booting an offset within the di
...+ uint32_t boot_lba; /* LBA of bootstrap code */
uint8_t type; /* Type byte for INT 13h AH=08h */
uint8_t driveno; /* Drive no */
uint16_t sector_size; /* Sector size in bytes (512 vs. 2048) */
@@ -451,6 +452,9 @@ static const struct geometry
*get_disk_image_geometry(uint32_t where,
/* If we have an emulation mode, set the offset to the image */
if (boot_cat->initial_entry.media_type)
hd_geometry.offset += boot_cat->initial_entry.load_block * 2048;
+ else
+ /* We're a no-emulation mode, so we will boot to an...