diff options
| author | Olof Johansson <olof@lixom.net> | 2013-02-04 22:56:41 -0800 | 
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2013-02-04 22:56:41 -0800 | 
| commit | 469da62096e23adc755c1268b00b5fc7a214151b (patch) | |
| tree | fefd055fdae584e38d551f44d1339eb22cee4ed9 /arch/x86/boot/compressed/eboot.c | |
| parent | 4227961650884a06757f80877d5dce0bddc723d4 (diff) | |
| parent | 88b62b915b0b7e25870eb0604ed9a92ba4bfc9f7 (diff) | |
| download | olio-linux-3.10-469da62096e23adc755c1268b00b5fc7a214151b.tar.xz olio-linux-3.10-469da62096e23adc755c1268b00b5fc7a214151b.zip  | |
Merge tag 'v3.8-rc6' into next/soc
Linux 3.8-rc6
Diffstat (limited to 'arch/x86/boot/compressed/eboot.c')
| -rw-r--r-- | arch/x86/boot/compressed/eboot.c | 21 | 
1 files changed, 11 insertions, 10 deletions
diff --git a/arch/x86/boot/compressed/eboot.c b/arch/x86/boot/compressed/eboot.c index b1942e22276..f8fa41190c3 100644 --- a/arch/x86/boot/compressed/eboot.c +++ b/arch/x86/boot/compressed/eboot.c @@ -256,10 +256,10 @@ static efi_status_t setup_efi_pci(struct boot_params *params)  	int i;  	struct setup_data *data; -	data = (struct setup_data *)params->hdr.setup_data; +	data = (struct setup_data *)(unsigned long)params->hdr.setup_data;  	while (data && data->next) -		data = (struct setup_data *)data->next; +		data = (struct setup_data *)(unsigned long)data->next;  	status = efi_call_phys5(sys_table->boottime->locate_handle,  				EFI_LOCATE_BY_PROTOCOL, &pci_proto, @@ -295,16 +295,18 @@ static efi_status_t setup_efi_pci(struct boot_params *params)  		if (!pci)  			continue; +#ifdef CONFIG_X86_64  		status = efi_call_phys4(pci->attributes, pci,  					EfiPciIoAttributeOperationGet, 0,  					&attributes); - +#else +		status = efi_call_phys5(pci->attributes, pci, +					EfiPciIoAttributeOperationGet, 0, 0, +					&attributes); +#endif  		if (status != EFI_SUCCESS)  			continue; -		if (!attributes & EFI_PCI_IO_ATTRIBUTE_EMBEDDED_ROM) -			continue; -  		if (!pci->romimage || !pci->romsize)  			continue; @@ -345,9 +347,9 @@ static efi_status_t setup_efi_pci(struct boot_params *params)  		memcpy(rom->romdata, pci->romimage, pci->romsize);  		if (data) -			data->next = (uint64_t)rom; +			data->next = (unsigned long)rom;  		else -			params->hdr.setup_data = (uint64_t)rom; +			params->hdr.setup_data = (unsigned long)rom;  		data = (struct setup_data *)rom; @@ -432,10 +434,9 @@ static efi_status_t setup_gop(struct screen_info *si, efi_guid_t *proto,  			 * Once we've found a GOP supporting ConOut,  			 * don't bother looking any further.  			 */ +			first_gop = gop;  			if (conout_found)  				break; - -			first_gop = gop;  		}  	}  |