Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MTaIR-00056N-Ef for mharc-grub-devel@gnu.org; Wed, 22 Jul 2009 07:47:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTaIP-000563-EP for grub-devel@gnu.org; Wed, 22 Jul 2009 07:47:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTaIK-00055n-2T for grub-devel@gnu.org; Wed, 22 Jul 2009 07:47:40 -0400 Received: from [199.232.76.173] (port=45637 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTaIJ-00055g-PJ for grub-devel@gnu.org; Wed, 22 Jul 2009 07:47:35 -0400 Received: from mail-bw0-f223.google.com ([209.85.218.223]:64847) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MTaIJ-0006Cd-6r for grub-devel@gnu.org; Wed, 22 Jul 2009 07:47:35 -0400 Received: by bwz23 with SMTP id 23so31669bwz.42 for ; Wed, 22 Jul 2009 04:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=t2izw/YJ/q5ZeXwlhsCiI865Rt8GMYnRAgY1QdLqA9A=; b=K+ylHbEKBrZTaYt0qO3KBLA3AQfRVZW7xzeErm/DLw9pBImRQyD+ehPukvAnEELq4V adKHnBl3ixnbHvX3voAMhkBbL0u0Iwt3NXIKcx+V4OIzGj3LfxUDm2V7KLV2vqLWSm70 0INUmXdT7u9dQ9jBYumnyW1udRvi0aanrhmM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=B0Jt/tvkBYRJJT4cwlqRk+C5PKx8asqWLeO4DjHsSvOQehwLJHiqjgMChA3IfnkwzS tSAmp+RQyb4jvEvIPuW5kwCey0sCBspY7UwyPL9ljzuRzWtEAhC1K5wVUd1egSRfMP6e MVW/rkVfp6YNStLqCxNQHvoOrm363Yn+cNMks= Received: by 10.103.224.8 with SMTP id b8mr416428mur.118.1248263253577; Wed, 22 Jul 2009 04:47:33 -0700 (PDT) Received: from ?192.168.1.100? (89.141.11.145.dyn.user.ono.com [89.141.11.145]) by mx.google.com with ESMTPS id e8sm1382574muf.36.2009.07.22.04.47.32 (version=SSLv3 cipher=RC4-MD5); Wed, 22 Jul 2009 04:47:32 -0700 (PDT) From: Javier =?ISO-8859-1?Q?Mart=EDn?= To: The development of GRUB 2 In-Reply-To: References: <4A627C5A.5070700@isaac.cedarswampstudios.org> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-C2zLkJ6b8AAr41NgF3hs" Date: Wed, 22 Jul 2009 13:47:34 +0200 Message-Id: <1248263254.10302.11.camel@accesodirecto.casa> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] New object format X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2009 11:47:42 -0000 --=-C2zLkJ6b8AAr41NgF3hs Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable El mi=C3=A9, 22-07-2009 a las 19:12 +0800, Bean escribi=C3=B3: > Fix some wrong assumption in types.h and efi header files. For > example, grub_efi_uint_t is defined as unsigned long, but it should be > grub_uint64_t in 64-bit EFI, this problem won't show previously as > unsigned long is 64-bit in elf64 gcc, but it's 32-bit in mingw-w64 > gcc. I think you haven't corrected _all_ such assumptions. For example, in your grub/types.h: #if GRUB_CPU_SIZEOF_VOID_P =3D=3D 8 # define GRUB_ULONG_MAX 18446744073709551615UL # define GRUB_LONG_MAX 9223372036854775807L # define GRUB_LONG_MIN (-9223372036854775807L - 1) #else # define GRUB_ULONG_MAX 4294967295UL # define GRUB_LONG_MAX 2147483647L # define GRUB_LONG_MIN (-2147483647L - 1) #endif In mingw64, sizeof(void*) =3D 8, but ULONG_MAX =3D 2^32-1. grub/machine/types.h defines a GRUB_TARGET_SIZEOF_LONG that might be suitable for this. Or am I mixing "target" with "host"? --=20 -- Lazy, Oblivious, Recurrent Disaster -- Habbit --=-C2zLkJ6b8AAr41NgF3hs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Esto es una parte de mensaje firmado digitalmente -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iQIcBAABAgAGBQJKZvxSAAoJEKSl+Fbdeo72Ma0P/3X6V0l8z+0nhdcks8QZlypt Wo1Z1TpqVAt1sCDZOAyyqWxzWuPIqxHAoKoMO0g2mC4G4Hn6cLcLiK5DzhuPomMR C7CRxtLIMN7R41v1P+KPyAXJDk9CaaQ51tRtLXRu1bVsYScDedPUd2CjPZniO/Kl 0EjnnVg3zsAGyE+c4/k4rKoG3GhNRJBKbd+2W6QjRC/JZJtCne6PWGyUIuw5oD/s oQs6IPp+oMEuyWnmjFt577d0TPpYpc100ZEGcscOt/KrY1E1qpb9nhRDEDt0YwrM NpuwmC47nuwCGzfs4/S7N8yqqX3BjwPTRjh9RVnnOVWv+I1tKBDYa42qAFiglfyp ajAWcZX4KIsaHwKq+6ZChLuTjbtJ52IKYYZWGctmt5uCcb2BzHuhoK/1SjxwFLEJ qIxhYJWyly0mVvLSnMNbm97Zvw/fhATg3mbjiA/cFhXt4zEYACL3gxlD6186Xqkr LA3RJj+eGmh4atx61bAj32VkSePzpTeX4vxmFifX7k0HWyxTQ90i3+jHwvMSv3l4 QUXggm6abD5gFL+wWmQTLNNag7Zs/HJZD87VFHowDJEU9ufEsW2QAb3LXpKhwW/p CZKw+p3mmdwZZiOlqlBnHnQcza/RLVw3n8h6TXUJxZWVZVk1nAdfxickc77zn3aM OUgDmxdsKsJK5t/yk9Y7 =KvTZ -----END PGP SIGNATURE----- --=-C2zLkJ6b8AAr41NgF3hs--