Displaying 3 results from an estimated 3 matches for "driverseg".
Did you mean:
drivers
2008 Jun 18
2
mysteries of memdisk code
..._size[]; These variables are declared (as extern
const chat in 'setup.c') but never defined in the code. Yet, it seems
that somehow they are initialized with the size and start address of
memdisk. How can it be?
2) What is driverptr (declared in setup())? It is defined as
driverptr = driverseg << 16; Why is it shifted by 16-bits?
Thanks.
Best regards,
Alex
2009 Sep 12
1
[PATCH] Let MEMDISK honor the quiet append option
...t; 10;
}
- printf("1588: 0x%04x 15E801: 0x%04x 0x%04x\n",
- pptr->memint1588, pptr->mem1mb, pptr->mem16mb);
+ if (!quiet)
+ printf("1588: 0x%04x 15E801: 0x%04x 0x%04x\n",
+ pptr->memint1588, pptr->mem1mb, pptr->mem16mb);
driverseg = driveraddr >> 4;
driverptr = driverseg << 16;
@@ -1007,7 +1026,8 @@
if (getcmditem("nopass") != CMD_NOTFOUND) {
/* nopass specified - we're the only drive by definition */
- printf("nopass specified - we're the only drive\n");
+ if (!...
2009 Dec 07
3
[PATCH] memdisk: "safe hook" and mBFT
...t 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)
/* Figure out where it needs to go */
hptr = (struct memdisk_header *)memdisk_hook;
+ safe_hook = (struct safe_hook *)(memdisk_hook + hptr->int13_offs);
pptr = (stru...