svn commit: r212064 - head/sys/boot/pc98/boot2

Kostik Belousov kostikbel at gmail.com
Wed Sep 1 06:46:23 UTC 2010


On Tue, Aug 31, 2010 at 11:17:05PM +0200, Dimitry Andric wrote:
> Indeed, any subtraction is only in "u_char *p = (u_char *)PTOV(0);".  If
> you prefer, I will revert to the old expression, or maybe we could use
> John's suggestion of:
> 
> 	return (*(u_char *)PTOV(0x401) * 128 * 1024 +
> 	    *(uint16_t *)PTOV(0x594) * 1024 * 1024);
> 
> which is less obfuscated.
John suggestion looks best, and it makes code cleaner too.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20100901/42214e9f/attachment.pgp


More information about the svn-src-head mailing list