summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/gptboot
diff options
context:
space:
mode:
authorrnordier <rnordier@FreeBSD.org>1998-10-13 23:43:38 +0000
committerrnordier <rnordier@FreeBSD.org>1998-10-13 23:43:38 +0000
commit828b8085198335e4e1ca550a65a62f92f4f00cab (patch)
tree92848a1138f12b57c62b0165b549aad02613e04e /sys/boot/i386/gptboot
parentc27186df492157654d0d7bfa05c4d02015754da1 (diff)
downloadFreeBSD-src-828b8085198335e4e1ca550a65a62f92f4f00cab.zip
FreeBSD-src-828b8085198335e4e1ca550a65a62f92f4f00cab.tar.gz
Fix flow of control after directory listing; enable EDD support;
cosmetics.
Diffstat (limited to 'sys/boot/i386/gptboot')
-rw-r--r--sys/boot/i386/gptboot/gptboot.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c
index 088601a..9577eec 100644
--- a/sys/boot/i386/gptboot/gptboot.c
+++ b/sys/boot/i386/gptboot/gptboot.c
@@ -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>
@@ -192,8 +192,9 @@ load(const char *fname)
uint32_t addr, x;
int fmt, i, j;
- if (!(ino = lookup(fname)) && !ls) {
- printf("No `%s'\n", fname);
+ if (!(ino = lookup(fname))) {
+ if (!ls)
+ printf("No %s\n", fname);
return;
}
if (xfsread(ino, &hdr, sizeof(hdr)))
@@ -712,7 +713,7 @@ drvread(void *buf, unsigned lba, unsigned nblk)
v86.eax = nblk;
v86.ebx = VTOPSEG(buf) << 16 | VTOPOFF(buf);
v86.ecx = lba;
- v86.edx = dsk.drive;
+ v86.edx = 0x100 | dsk.drive;
v86int();
v86.ctl = V86_FLAGS;
if (V86_CY(v86.efl)) {
OpenPOWER on IntegriCloud