<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/syslinux.git/memdisk/setup.c, branch corezlib</title>
<subtitle>git.kernel.org: pub/scm/boot/syslinux/syslinux.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/'/>
<entry>
<title>memdisk: add a sector_shift field to the MDI; fix memdiskfind</title>
<updated>2010-06-22T17:55:03+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@linux.intel.com</email>
</author>
<published>2010-06-22T17:55:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=d966918e7304ff405fae20916cf137d737c92dea'/>
<id>d966918e7304ff405fae20916cf137d737c92dea</id>
<content type='text'>
Add a sector_shift field to the MDI rather than assuming 512-byte
sectors.  Fix memdiskfind to report size in bytes, not in sectors.

Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a sector_shift field to the MDI rather than assuming 512-byte
sectors.  Fix memdiskfind to report size in bytes, not in sectors.

Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memdisk: make mstructs.h includable from Linux</title>
<updated>2010-06-22T00:29:11+00:00</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@linux.intel.com</email>
</author>
<published>2010-06-22T00:29:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=7556a891b2f28617f6c95aa271aeaf29883d0981'/>
<id>7556a891b2f28617f6c95aa271aeaf29883d0981</id>
<content type='text'>
Make mstructs.h includable from a Linux utility.

Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make mstructs.h includable from a Linux utility.

Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memdisk: Force 32-bit mBFT "safe hook" pointer field</title>
<updated>2010-06-11T01:49:10+00:00</updated>
<author>
<name>Shao Miller</name>
<email>shao.miller@yrdsb.edu.on.ca</email>
</author>
<published>2010-03-09T23:24:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=9d52e438f991e1d7667df6a5eead2e240b0164eb'/>
<id>9d52e438f991e1d7667df6a5eead2e240b0164eb</id>
<content type='text'>
When mstructs.h is used by MDISKCHK.COM, pointers have
a 16-bit size and thus the mBFT structure sizeof() is
smaller under OpenWatcom.  We now union this pointer
member with a uint32_t to force the field to at least
32 bits.

There is another pointer in this header file which is
already unioned with a uint32_t, due to that field's
dual-purpose.  That field is fine under OpenWatcom.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When mstructs.h is used by MDISKCHK.COM, pointers have
a 16-bit size and thus the mBFT structure sizeof() is
smaller under OpenWatcom.  We now union this pointer
member with a uint32_t to force the field to at least
32 bits.

There is another pointer in this header file which is
already unioned with a uint32_t, due to that field's
dual-purpose.  That field is fine under OpenWatcom.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memdisk: Move dpt_t into common structures header</title>
<updated>2010-06-11T01:49:10+00:00</updated>
<author>
<name>Shao Miller</name>
<email>shao.miller@yrdsb.edu.on.ca</email>
</author>
<published>2010-03-09T22:57:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=1a23222896a27d62a762042352e2f72472a1605d'/>
<id>1a23222896a27d62a762042352e2f72472a1605d</id>
<content type='text'>
This needs to be in here in order for the header file
to be useful to any C file other than setup.c.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This needs to be in here in order for the header file
to be useful to any C file other than setup.c.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memdisk: Change patch area to include the entire MDI</title>
<updated>2010-06-11T01:49:10+00:00</updated>
<author>
<name>Shao Miller</name>
<email>shao.miller@yrdsb.edu.on.ca</email>
</author>
<published>2010-03-09T21:54:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=3397b50cfc534f7ee0b65b7501b1081df03a106b'/>
<id>3397b50cfc534f7ee0b65b7501b1081df03a106b</id>
<content type='text'>
Previously, the patch area began after the beginning of
the MDI, but continued past its end.  This is difficult
to express with C structures, so we've simply changed
the patch area to include the entire MDI.  So it now
includes the MDI size and MEMDISK version info, which
we simply make constant to avoid modifying.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the patch area began after the beginning of
the MDI, but continued past its end.  This is difficult
to express with C structures, so we've simply changed
the patch area to include the entire MDI.  So it now
includes the MDI size and MEMDISK version info, which
we simply make constant to avoid modifying.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memdisk: Use MEMDISK header to access "safe hook"</title>
<updated>2010-06-11T01:49:10+00:00</updated>
<author>
<name>Shao Miller</name>
<email>shao.miller@yrdsb.edu.on.ca</email>
</author>
<published>2010-03-09T21:02:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=ec3733b81f4771a4b8e212edd9bd4a8600a2d382'/>
<id>ec3733b81f4771a4b8e212edd9bd4a8600a2d382</id>
<content type='text'>
This commit moves the MEMDISK header structure into
the common structures header file.

It also adds the "safe hook" structure to the MEMDISK
header structure, since that matches what's in the hook
binaries.  Thus, we access the "safe hook" via the
header pointer, instead of separately.

Tested against a DOS floppy image including an
experimental MDISKCHK.COM and also gainst WinVBlock.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit moves the MEMDISK header structure into
the common structures header file.

It also adds the "safe hook" structure to the MEMDISK
header structure, since that matches what's in the hook
binaries.  Thus, we access the "safe hook" via the
header pointer, instead of separately.

Tested against a DOS floppy image including an
experimental MDISKCHK.COM and also gainst WinVBlock.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memdisk: Use real_addr_t for SEG:OFF fields</title>
<updated>2010-06-11T01:49:10+00:00</updated>
<author>
<name>Shao Miller</name>
<email>shao.miller@yrdsb.edu.on.ca</email>
</author>
<published>2010-03-09T19:45:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=345a7cba6786de010359607e40f96f6fccbf40a5'/>
<id>345a7cba6786de010359607e40f96f6fccbf40a5</id>
<content type='text'>
We used uint32_t in a few places where it's also handy
to refer to those fields' segment and offset components.
Now we can do so via the real_addr_t union type.

Additionally, there are a couple of places where we now
have pointer fields instead of uint32_t fields, because
we know what kind of struct the field is pointing to.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We used uint32_t in a few places where it's also handy
to refer to those fields' segment and offset components.
Now we can do so via the real_addr_t union type.

Additionally, there are a couple of places where we now
have pointer fields instead of uint32_t fields, because
we know what kind of struct the field is pointing to.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memdisk: Move common structures into headers</title>
<updated>2010-06-11T01:49:10+00:00</updated>
<author>
<name>Shao Miller</name>
<email>shao.miller@yrdsb.edu.on.ca</email>
</author>
<published>2010-03-09T07:08:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=2f4137d83abc2a63e982439b0506f6a630a91096'/>
<id>2f4137d83abc2a63e982439b0506f6a630a91096</id>
<content type='text'>
Since MDISKCHK.COM (and possibly COM32 modules) could make use of
structures found in MEMDISK's setup.c, we move these into a new
header file mstructs.h.

Also, since the OpenWatcom compiler uses a structure packing prefix
and GCC uses a structure packing postfix, we accomodate this with
preprocessor definitions around those structures needing to be
packed.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since MDISKCHK.COM (and possibly COM32 modules) could make use of
structures found in MEMDISK's setup.c, we move these into a new
header file mstructs.h.

Also, since the OpenWatcom compiler uses a structure packing prefix
and GCC uses a structure packing postfix, we accomodate this with
preprocessor definitions around those structures needing to be
packed.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memdisk: Calculate mBFT checksum later</title>
<updated>2010-03-31T01:09:59+00:00</updated>
<author>
<name>Shao Miller</name>
<email>shao.miller@yrdsb.edu.on.ca</email>
</author>
<published>2010-03-09T06:12:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=b5d635ad26b00ce242af7c1b31e34f41cb798fc9'/>
<id>b5d635ad26b00ce242af7c1b31e34f41cb798fc9</id>
<content type='text'>
We were calculating the mBFT checksum too early; dpt_ptr could
change after checksumming, so we now do it after that possibility.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We were calculating the mBFT checksum too early; dpt_ptr could
change after checksumming, so we now do it after that possibility.

Signed-off-by: Shao Miller &lt;shao.miller@yrdsb.edu.on.ca&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>memdisk: MBR not recognized correctly</title>
<updated>2010-03-30T22:19:41+00:00</updated>
<author>
<name>Bodo Stroesser</name>
<email>bstroesser at ts.fujitsu.com</email>
</author>
<published>2010-03-23T16:56:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/syslinux.git/commit/?id=7be3ff1150edfbfe62e1aab9ad3f9824082019d5'/>
<id>7be3ff1150edfbfe62e1aab9ad3f9824082019d5</id>
<content type='text'>
This fixes a small inaccuracy in memdisk:

get_disk_image_geometry() does not use MBR data to detect disk
geometry, since it checks MBR signature at wrong offset.

This normally does not cause problems, because memdisk guesses a
reasonable value, if no MBR is found.

Signed-off-by: Bodo Stroesser &lt;bstroesser at ts.fujitsu.com&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes a small inaccuracy in memdisk:

get_disk_image_geometry() does not use MBR data to detect disk
geometry, since it checks MBR signature at wrong offset.

This normally does not cause problems, because memdisk guesses a
reasonable value, if no MBR is found.

Signed-off-by: Bodo Stroesser &lt;bstroesser at ts.fujitsu.com&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
