Fix a confusing typo in the EDD packet structure used in gptboot and

gptzfsboot.  I got the segment and offset fields reversed in the structure,
but I also succeeded in crossing the assignments so the actual EDD packet
ended up correct.

MFC after:	1 week
This commit is contained in:
John Baldwin 2009-12-09 21:09:32 +00:00
parent 4497287f20
commit 23e00c4d81
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=200310
2 changed files with 6 additions and 6 deletions

View File

@ -642,8 +642,8 @@ bcmp(const void *b1, const void *b2, size_t length)
static struct {
uint16_t len;
uint16_t count;
uint16_t seg;
uint16_t off;
uint16_t seg;
uint64_t lba;
} packet;
@ -656,8 +656,8 @@ drvread(void *buf, daddr_t lba, unsigned nblk)
printf("%c\b", c = c << 8 | c >> 24);
packet.len = 0x10;
packet.count = nblk;
packet.seg = VTOPOFF(buf);
packet.off = VTOPSEG(buf);
packet.off = VTOPOFF(buf);
packet.seg = VTOPSEG(buf);
packet.lba = lba;
v86.ctl = V86_FLAGS;
v86.addr = 0x13;

View File

@ -1049,8 +1049,8 @@ putchar(int c)
static struct {
uint16_t len;
uint16_t count;
uint16_t seg;
uint16_t off;
uint16_t seg;
uint64_t lba;
} packet;
#endif
@ -1065,8 +1065,8 @@ drvread(struct dsk *dsk, void *buf, daddr_t lba, unsigned nblk)
printf("%c\b", c = c << 8 | c >> 24);
packet.len = 0x10;
packet.count = nblk;
packet.seg = VTOPOFF(buf);
packet.off = VTOPSEG(buf);
packet.off = VTOPOFF(buf);
packet.seg = VTOPSEG(buf);
packet.lba = lba + dsk->start;
v86.ctl = V86_FLAGS;
v86.addr = 0x13;