projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
638d664
)
Compute the end cylinder/head correctly.
author
hpa
<hpa>
Sun, 9 Nov 2003 01:28:04 +0000
(
01:28
+0000)
committer
hpa
<hpa>
Sun, 9 Nov 2003 01:28:04 +0000
(
01:28
+0000)
mkdiskimage.in
patch
|
blob
|
history
diff --git
a/mkdiskimage.in
b/mkdiskimage.in
index
74ef3f3
..
e1b7949
100755
(executable)
--- a/
mkdiskimage.in
+++ b/
mkdiskimage.in
@@
-89,9
+89,9
@@
$psize = $c*$h*$s-$s;
$bhead = ($h > 1) ? 1 : 0;
$bsect = 1;
$bcyl = ($h > 1) ? 0 : 1;
-$ehead = $h;
-$esect = $s + ((
$c
& 0x300) >> 2);
-$ecyl =
$c
& 0xff;
+$ehead = $h
-1
;
+$esect = $s + ((
($c-1)
& 0x300) >> 2);
+$ecyl =
($c-1)
& 0xff;
if ( $psize > 65536 ) {
$fstype = 0x06;
} else {