summaryrefslogtreecommitdiffstats
path: root/sys/boot/pc98/boot0.5
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>2000-08-03 13:01:45 +0000
committerkato <kato@FreeBSD.org>2000-08-03 13:01:45 +0000
commite773ca51d9f9cea804dcdfacedffbda8ab20d828 (patch)
tree830262580c26d110ae5de4fc716162ee559fa93d /sys/boot/pc98/boot0.5
parentd2d13e972cc2da4e22b200819b2cc132fcc5c771 (diff)
downloadFreeBSD-src-e773ca51d9f9cea804dcdfacedffbda8ab20d828.zip
FreeBSD-src-e773ca51d9f9cea804dcdfacedffbda8ab20d828.tar.gz
- Fixed %si (offset to partition table) in boot.
- Fixed comment.
Diffstat (limited to 'sys/boot/pc98/boot0.5')
-rw-r--r--sys/boot/pc98/boot0.5/boot.s6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/pc98/boot0.5/boot.s b/sys/boot/pc98/boot0.5/boot.s
index 8b25d51..1a3bfc7 100644
--- a/sys/boot/pc98/boot0.5/boot.s
+++ b/sys/boot/pc98/boot0.5/boot.s
@@ -97,8 +97,8 @@ boot:
# %cx: cylinder number of boot partition
# %si: pointer to partition table
movw b_partn, %ax
- movb $10, %cl
- shl %cl, %ax # %ax = partition number * 32 * 32
+ movb $5, %cl
+ shl %cl, %ax # %ax = partition number * 32
addw b_secsize, %ax
movw %ax, %si # %si = pointer to partition table
movw b_cylinder, %cx # %cx = cylinder
@@ -118,7 +118,7 @@ boot:
xorw %ax, %ax
movw %ax, %ds # %ds = 0
movw %di, %ax # Restore %ax
- xorb %ah, %ah # %di = 0
+ xorb %ah, %ah # %ah = 0
xorw %di, %di # %di = 0
sti
OpenPOWER on IntegriCloud