chain.c32: make CHS calculation match core/fs/diskio.c
authorH. Peter Anvin <hpa@zytor.com>
Wed, 13 Oct 2010 05:46:15 +0000 (22:46 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 13 Oct 2010 05:49:18 +0000 (22:49 -0700)
commit901df1bf42caf1d361ee2c1e93f48f079cd57ff9
tree2a88d52c1e7fa9ee555a6ded3c473a912104cad9
parent0d738aa71b053f185cf5fbc126b1bbb6fb8d478b
chain.c32: make CHS calculation match core/fs/diskio.c

Use the same format for the CHS calculation as in core/fs/diskio.c;
also, apply the correct limits, and propagate the fix to the write
routine.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/modules/chain.c