aboutsummaryrefslogtreecommitdiff
path: root/src/disk.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-01-21 19:13:21 -0500
committerKevin O'Connor <kevin@koconnor.net>2009-01-21 19:13:21 -0500
commit7d108214e7de92612a10faba1b901ed186f7aa1e (patch)
tree4384af04099dcaa3b88d6501b1438c3f5ba4504e /src/disk.c
parent273e8ae57159d69db504fabe70b0724de5297161 (diff)
downloadseabios-hppa-7d108214e7de92612a10faba1b901ed186f7aa1e.zip
seabios-hppa-7d108214e7de92612a10faba1b901ed186f7aa1e.tar.gz
seabios-hppa-7d108214e7de92612a10faba1b901ed186f7aa1e.tar.bz2
Fix apparent bug in int1348 -- checksum didn't have regs->si offset.
Diffstat (limited to 'src/disk.c')
-rw-r--r--src/disk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/disk.c b/src/disk.c
index 03d2d38..dfaa24f 100644
--- a/src/disk.c
+++ b/src/disk.c
@@ -522,7 +522,8 @@ disk_1348(struct bregs *regs, u8 device)
SET_INT13DPT(regs, device_path, slave);
- SET_INT13DPT(regs, checksum, -checksum_far(regs->ds, (void*)30, 35));
+ SET_INT13DPT(regs, checksum
+ , -checksum_far(regs->ds, (void*)(regs->si+30), 35));
disk_ret(regs, DISK_RET_SUCCESS);
}