Displaying 2 results from an estimated 2 matches for "boot_base".
2009 Nov 20
0
[PATCH] memdisk: Use boot_lba logic for booting an offset within the di
...struct real_mode_args *rm_args_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 Mi...
2009 Sep 12
1
[PATCH] Let MEMDISK honor the quiet append option
.../* 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") != CMD_NOTFOUND) {
- puts("press any key to boot... ");
+ puts("\n Press any key to boot... ");
regs.eax.w[0] = 0;
intcall(0x16, ®s, NULL);
+ puts("\n&qu...