- Fixed %si (offset to partition table) in boot.

- Fixed comment.
This commit is contained in:
KATO Takenori 2000-08-03 13:01:45 +00:00
parent 3057c28f04
commit aa4e20f5bd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64190

View file

@ -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