qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH] Ensure PCIR is aligned to 4 bytes
@ 2013-09-19 16:53 Sebastian Herbszt
  2013-09-20 22:43 ` Brad Smith
  0 siblings, 1 reply; 12+ messages in thread
From: Sebastian Herbszt @ 2013-09-19 16:53 UTC (permalink / raw)
  To: brad, qemu-devel; +Cc: Sebastian Herbszt

Brad Smith wrote:
> On 20/01/13 1:12 PM, David Woodhouse wrote:
>> The PCI Firmware Specification apparently requires that the PCI Data
>> Structure be DWORD-aligned. The implementation in OVMF also requires
>> this, so vgabios ROMs don't work there. With this fixed, I can now
>> initialise the VGA ROM from EFI, and EFI can display using INT 10h
>> services.
>>
>> --- vgabios-0.6c/vgabios.c.orig	2013-01-20 11:33:36.138548472
>> -0600 +++ vgabios-0.6c/vgabios.c	2013-01-20 11:36:26.060270163
>> -0600 @@ -204,6 +204,7 @@ vgabios_website:
>>   .byte	0x00
>>
>>   #ifdef PCIBIOS
>> +.align 4 // DWORD alignment required by PCI Firmware Specification
>>   vgabios_pci_data:
>>   .ascii "PCIR"
>>   #ifdef CIRRUS
> 
> We have had this in the OpenBSD port of QEMU for awhile now. Is it 
> possible to have this reviewed and commited?

This change was commited to upstream vgabios back in February [1].

[1]
http://cvs.savannah.gnu.org/viewvc/vgabios/vgabios.c?root=vgabios&view=log

Sebastian

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Qemu-devel] [PATCH] Ensure PCIR is aligned to 4 bytes
@ 2013-01-20 18:12 David Woodhouse
  2013-09-13  0:05 ` Brad Smith
  0 siblings, 1 reply; 12+ messages in thread
From: David Woodhouse @ 2013-01-20 18:12 UTC (permalink / raw)
  To: info; +Cc: vgabios-developers, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

The PCI Firmware Specification apparently requires that the PCI Data
Structure be DWORD-aligned. The implementation in OVMF also requires
this, so vgabios ROMs don't work there. With this fixed, I can now
initialise the VGA ROM from EFI, and EFI can display using INT 10h
services.

--- vgabios-0.6c/vgabios.c.orig	2013-01-20 11:33:36.138548472 -0600
+++ vgabios-0.6c/vgabios.c	2013-01-20 11:36:26.060270163 -0600
@@ -204,6 +204,7 @@ vgabios_website:
 .byte	0x00
 
 #ifdef PCIBIOS
+.align 4 // DWORD alignment required by PCI Firmware Specification
 vgabios_pci_data:
 .ascii "PCIR"
 #ifdef CIRRUS



-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel.com                              Intel Corporation




[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 6171 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-11-25  7:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-19 16:53 [Qemu-devel] [PATCH] Ensure PCIR is aligned to 4 bytes Sebastian Herbszt
2013-09-20 22:43 ` Brad Smith
2013-09-21 16:38   ` Sebastian Herbszt
2013-09-25 23:24     ` Brad Smith
2013-10-09  1:56       ` Brad Smith
2013-10-09 15:18         ` Andreas Färber
2013-10-10 19:17           ` Sebastian Herbszt
2013-10-11  6:31             ` Gerd Hoffmann
2013-11-24 20:35               ` Brad Smith
2013-11-25  7:02                 ` Gerd Hoffmann
  -- strict thread matches above, loose matches on Subject: below --
2013-01-20 18:12 David Woodhouse
2013-09-13  0:05 ` Brad Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).