* [Patch] i386: build.c: Write out larger system size to bootsector
@ 2005-08-08 2:12 Frank Sorenson
0 siblings, 0 replies; only message in thread
From: Frank Sorenson @ 2005-08-08 2:12 UTC (permalink / raw)
To: LKML, Andrew Morton
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This patch allows build.c to write out the full system size to the bootsector for system sizes larger than about 1 MB (1048560 bytes) by using another byte (a 4th byte would allow system sizes larger than 268 MB).
Signed-off-by: Frank Sorenson <frank@tuxrocks.com>
- --- a/arch/i386/boot/tools/build.c 2005-08-07 18:08:29.000000000 -0600
+++ b/arch/i386/boot/tools/build.c 2005-08-07 18:09:51.000000000 -0600
@@ -177,7 +177,8 @@
die("Output: seek failed");
buf[0] = (sys_size & 0xff);
buf[1] = ((sys_size >> 8) & 0xff);
- - if (write(1, buf, 2) != 2)
+ buf[2] = ((sys_size >> 16) & 0xff);
+ if (write(1, buf, 3) != 3)
die("Write of image length failed");
return 0; /* Everything is OK */
Frank
- --
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
frank@tuxrocks.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFC9r+raI0dwg4A47wRAtXCAKCm3f2Afx/SC5H+6HJz2JzM9cA1ZQCgjMbg
qt7Rmo23aWfG1cvsZrcsQvA=
=0iHd
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-08-08 2:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 2:12 [Patch] i386: build.c: Write out larger system size to bootsector Frank Sorenson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox