Fix flow of control after directory listing; enable EDD support;
cosmetics.
This commit is contained in:
parent
718cd18c53
commit
757ee5cca9
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id: boot2.c,v 1.4 1998/10/13 22:17:05 rnordier Exp $
|
* $Id: boot2.c,v 1.5 1998/10/13 23:00:47 rnordier Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -192,8 +192,9 @@ load(const char *fname)
|
|||||||
uint32_t addr, x;
|
uint32_t addr, x;
|
||||||
int fmt, i, j;
|
int fmt, i, j;
|
||||||
|
|
||||||
if (!(ino = lookup(fname)) && !ls) {
|
if (!(ino = lookup(fname))) {
|
||||||
printf("No `%s'\n", fname);
|
if (!ls)
|
||||||
|
printf("No %s\n", fname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (xfsread(ino, &hdr, sizeof(hdr)))
|
if (xfsread(ino, &hdr, sizeof(hdr)))
|
||||||
@ -712,7 +713,7 @@ drvread(void *buf, unsigned lba, unsigned nblk)
|
|||||||
v86.eax = nblk;
|
v86.eax = nblk;
|
||||||
v86.ebx = VTOPSEG(buf) << 16 | VTOPOFF(buf);
|
v86.ebx = VTOPSEG(buf) << 16 | VTOPOFF(buf);
|
||||||
v86.ecx = lba;
|
v86.ecx = lba;
|
||||||
v86.edx = dsk.drive;
|
v86.edx = 0x100 | dsk.drive;
|
||||||
v86int();
|
v86int();
|
||||||
v86.ctl = V86_FLAGS;
|
v86.ctl = V86_FLAGS;
|
||||||
if (V86_CY(v86.efl)) {
|
if (V86_CY(v86.efl)) {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id: boot2.c,v 1.4 1998/10/13 22:17:05 rnordier Exp $
|
* $Id: boot2.c,v 1.5 1998/10/13 23:00:47 rnordier Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -192,8 +192,9 @@ load(const char *fname)
|
|||||||
uint32_t addr, x;
|
uint32_t addr, x;
|
||||||
int fmt, i, j;
|
int fmt, i, j;
|
||||||
|
|
||||||
if (!(ino = lookup(fname)) && !ls) {
|
if (!(ino = lookup(fname))) {
|
||||||
printf("No `%s'\n", fname);
|
if (!ls)
|
||||||
|
printf("No %s\n", fname);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (xfsread(ino, &hdr, sizeof(hdr)))
|
if (xfsread(ino, &hdr, sizeof(hdr)))
|
||||||
@ -712,7 +713,7 @@ drvread(void *buf, unsigned lba, unsigned nblk)
|
|||||||
v86.eax = nblk;
|
v86.eax = nblk;
|
||||||
v86.ebx = VTOPSEG(buf) << 16 | VTOPOFF(buf);
|
v86.ebx = VTOPSEG(buf) << 16 | VTOPOFF(buf);
|
||||||
v86.ecx = lba;
|
v86.ecx = lba;
|
||||||
v86.edx = dsk.drive;
|
v86.edx = 0x100 | dsk.drive;
|
||||||
v86int();
|
v86int();
|
||||||
v86.ctl = V86_FLAGS;
|
v86.ctl = V86_FLAGS;
|
||||||
if (V86_CY(v86.efl)) {
|
if (V86_CY(v86.efl)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user