- Fix RO string that got written - Add mmap() when we run ELF, because we need to map lomem - Fix uninitialized reference in di->location - Make doscmd_loader use loadfile() [Tested only with ELF]
27 lines
794 B
Text
27 lines
794 B
Text
$NetBSD: patch-ai,v 1.1 1999/12/18 01:46:29 christos Exp $
|
|
|
|
--- int13.c.orig Thu May 2 16:49:57 1996
|
|
+++ int13.c Fri Dec 17 20:36:23 1999
|
|
@@ -296,7 +296,7 @@
|
|
di->secsize = 512;
|
|
di->path = strdup(file);
|
|
|
|
- di->location = ((table & 0xf0000) << 12) | (table & 0xffff);
|
|
+ di->location = ((htable & 0xf0000) << 12) | (htable & 0xffff);
|
|
|
|
if (drive == 0) {
|
|
ivec[0x41] = di->location;
|
|
@@ -413,11 +413,11 @@
|
|
di->path = strdup(file);
|
|
}
|
|
di->fd = -1;
|
|
- di->location = ((table & 0xf0000) << 12) | (table & 0xffff);
|
|
+ di->location = ((ftable & 0xf0000) << 12) | (ftable & 0xffff);
|
|
di->sector0 = 0;
|
|
di->offset = 0;
|
|
|
|
- ivec[0x1e] = ((ftable & 0xf0000) << 12) | (ftable & 0xffff);
|
|
+ ivec[0x1e] = di->location;
|
|
|
|
table = ftable + drive * 0x0a;
|
|
|