Displaying 2 results from an estimated 2 matches for "boot_lba".
Did you mean:
boot_kbd
2009 Nov 20
0
[PATCH] memdisk: Use boot_lba logic for booting an offset within the di
...sk/setup.c
index 40f3f8c..5a45f39 100644
--- a/memdisk/setup.c
+++ b/memdisk/setup.c
@@ -338,6 +338,7 @@ struct geometry {
uint32_t sectors; /* Sector count */
uint32_t c, h, s; /* C/H/S geometry */
uint32_t offset; /* Byte offset for disk */
+ 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...
2009 Sep 12
1
[PATCH] Let MEMDISK honor the quiet append option
...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");
}
- puts("bootin...