search for: rm_args_ptr

Displaying 3 results from an estimated 3 matches for "rm_args_ptr".

2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
...((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, driveraddr; @@ -899,6 +918,7 @@ void setup(const struct real_mode_args *rm_args_ptr) /* Fi...
2009 Nov 20
0
[PATCH] memdisk: Use boot_lba logic for booting an offset within the di
...ot_lba = boot_cat->initial_entry.load_block * 4; if (boot_cat->initial_entry.media_type < 4) { /* We're a floppy emulation mode or our params will be * overwritten by the no emulation mode case @@ -831,7 +835,6 @@ void setup(const struct real_mode_args *rm_args_ptr) int no_bpt; /* No valid BPT presented */ uint32_t boot_seg = 0; /* Meaning 0000:7C00 */ uint32_t boot_len = 512; /* One sector */ - uint32_t boot_lba = 0; /* LBA of bootstrap code */ /* We need to copy the rm_args into their proper place */...
2009 Sep 12
1
[PATCH] Let MEMDISK honor the quiet append option
...SK: Image seems to have fractional end cylinder\n"); + } + if ((hd_geometry.c * hd_geometry.h * hd_geometry.s) > sectors) { + puts("MEMDISK: Image appears to be truncated\n"); + } } return &hd_geometry; @@ -782,8 +787,14 @@ memcpy(&rm_args, rm_args_ptr, sizeof rm_args); sti(); /* ... then interrupts are safe */ + if (getcmditem("quiet") != CMD_NOTFOUND) + quiet = true; + else + quiet = false; + /* Show signs of life */ - printf("%s %s\n", memdisk_version, copyright); + if (!quiet) +...