grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix GPT build failure on big-endian architectures


From: Colin Watson
Subject: Re: [PATCH] Fix GPT build failure on big-endian architectures
Date: Tue, 23 Nov 2010 10:49:18 +0000
User-agent: Mutt/1.5.18 (2008-05-17)

On Mon, Nov 22, 2010 at 11:31:40PM +0000, Colin Watson wrote:
> @@ -198,6 +198,14 @@ static struct grub_partition_map grub_gp
>  GRUB_MOD_INIT(part_gpt)
>  {
>    grub_partition_map_register (&grub_gpt_partition_map);
> +#ifdef GRUB_UTIL
> +  grub_gpt_partition_type_bios_boot.data1 =
> +    grub_cpu_to_le32 (grub_gpt_partition_type_bios_boot.data1);
> +  grub_gpt_partition_type_bios_boot.data2 =
> +    grub_cpu_to_le32 (grub_gpt_partition_type_bios_boot.data2);
> +  grub_gpt_partition_type_bios_boot.data3 =
> +    grub_cpu_to_le32 (grub_gpt_partition_type_bios_boot.data3);
> +#endif
>  }
>  
>  GRUB_MOD_FINI(part_gpt)
> 

Of course the second and third of these should have been
grub_cpu_to_le16.

I've gone ahead and applied this, with that correction; please do
correct me if you notice anything else wrong with it.

-- 
Colin Watson                                       address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]