grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] byte-addressable grub_pci_make_address


From: Robert Millan
Subject: Re: [PATCH] byte-addressable grub_pci_make_address
Date: Thu, 24 Dec 2009 22:50:11 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Dec 22, 2009 at 03:12:09PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko 
wrote:
> === modified file 'commands/efi/loadbios.c'
> --- commands/efi/loadbios.c   2009-12-21 22:06:04 +0000
> +++ commands/efi/loadbios.c   2009-12-22 12:03:12 +0000
> @@ -50,7 +50,7 @@
>        return 0;
>      }
>  
> -  addr = grub_pci_make_address (dev, 36);
> +  addr = grub_pci_make_address (dev, 144);
>    grub_pci_write_byte (addr++, 0x30);
>    grub_pci_write_byte (addr++, 0x33);
>    grub_pci_write_byte (addr++, 0x33);
> @@ -76,7 +76,7 @@
>    grub_pci_address_t addr;
>    grub_pci_device_t dev = { .bus = 0, .device = 0, .function = 0};
>  
> -  addr = grub_pci_make_address (dev, 36);
> +  addr = grub_pci_make_address (dev, 144);

These look like black magic.  Could they be macroified instead?

-- 
Robert Millan

  "Be the change you want to see in the world" -- Gandhi




reply via email to

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