Displaying 2 results from an estimated 2 matches for "relocate_rm_code".
2009 Dec 09
2
[PATCH] memdisk: Fix "might be used uninitialized" warnings
...(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 relocate_rm_code(uint32_t newbase)
static uint8_t checksum_buf(const void *buf, int count)
{
const uint8_t *p = buf;
- uint8_t c;
+ uint8_t c = 0;
while (count--)
c += *p++;
--
1.5.3.4
- Shao Miller
-------------- next part --------------
An embedded and charset-unspecified text was scrub...
2009 Sep 12
1
[PATCH] Let MEMDISK honor the quiet append option
..._INT13), rdz_32(BIOS_INT15), rdz_32(BIOS_INT1E));
+ if (!quiet)
+ printf("new: int13 = %08x int15 = %08x int1e = %08x\n",
+ rdz_32(BIOS_INT13), rdz_32(BIOS_INT15), rdz_32(BIOS_INT1E));
/* Figure out entry point */
if (!boot_seg) {
@@ -1141,17 +1166,20 @@
relocate_rm_code(rm_base);
/* Reboot into the new "disk" */
- puts("Loading boot sector... ");
+ if (!quiet)
+ puts("Loading boot sector... ");
memcpy((void *)boot_base, (char *)pptr->diskbuf + boot_lba*512, boot_len);
if (getcmditem("pause")...