search for: diskbuf

Displaying 5 results from an estimated 5 matches for "diskbuf".

Did you mean: diskbox
2009 Nov 20
0
[PATCH] memdisk: Use boot_lba logic for booting an offset within the di
...rgs_ptr) /* Reboot into the new "disk" */ puts("Loading boot sector... "); - if (do_eltorito) { - /* 4 times as many 512-byte sectors in a 2048-byte sector */ - boot_lba = pptr->cd_pkt.start * 4; - } - memcpy((void *)boot_base, (char *)pptr->diskbuf + boot_lba * 512, boot_len); + memcpy((void *)boot_base, (char *)pptr->diskbuf + geometry->boot_lba * 512, + boot_len); if (getcmditem("pause") != CMD_NOTFOUND) { puts("press any key to boot... "); -- 1.5.6.3 - Shao Miller -------------- next p...
2007 Aug 28
2
memdisk patch
...o transfer - mov edi,[es:si+8] ; Starting sector - mov eax,edi + mov esi,[es:si+8] ; Starting sector + mov eax,esi add eax,ecx jc .overrun cmp eax,[DiskSize] ja .overrun shl ecx,SECTORSIZE_LG2-2 ; Convert to dwords - shl edi,SECTORSIZE_LG2 ; Convert to an offset - add edi,[DiskBuf] + shl esi,SECTORSIZE_LG2 ; Convert to an offset + add esi,[DiskBuf] + mov edi,ebx pop es ret
2011 Aug 06
4
[PATCH] ifmemdsk.c32: Allow boot options based on presence of MEMDISK
...memdisk_info(const s_mdi * mdi) { + const char * cmdline; + + if (!show_info) + return; + + cmdline = MK_PTR( + mdi->cmdline.seg_off.segment, + mdi->cmdline.seg_off.offset + ); + printf( + "Found MEMDISK version %u.%02u:\n" + " diskbuf == 0x%08X, disksize == %u sectors\n" + " bootloaderid == 0x%02X (%s),\n" + " cmdline: %s\n", + mdi->version_major, + mdi->version_minor, + mdi->diskbuf, + mdi->disksize, + mdi->bootloaderid, + bootload...
2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
...-102,6 +115,11 @@ struct edd_dpt { uint8_t chksum; /* DPI checksum */ } __attribute__((packed)); +struct mBFT { + struct acpi_description_header acpi; + uint32_t safe_hook; /* "Safe hook" physical address */ +} __attribute__((packed)); + struct patch_area { uint32_t diskbuf; uint32_t disksize; @@ -816,6 +834,7 @@ void setup(const struct real_mode_args *rm_args_ptr) unsigned int bin_size; char *memdisk_hook; struct memdisk_header *hptr; + struct safe_hook *safe_hook; struct patch_area *pptr; uint16_t driverseg; uint32_t driverptr,...
2009 Sep 12
1
[PATCH] Let MEMDISK honor the quiet append option
...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") != CMD_NOTFOUND) { - puts("press any key to boot... "); + puts("\n Press any key to boot... "); regs.eax.w[0] = 0; intcall(0x16, &regs, NULL); + puts("\n"); } - puts(&...