On 11/10/12 00:30, Paolo Bonzini wrote: > Il 08/11/2012 23:17, Gerd Hoffmann ha scritto: >> On 11/08/12 22:23, Jordan Justen wrote: >>> Seems like you're going to need to: >>> * Pull IoRead/Write16 from MdePkg/Library/BaseIoLibIntrinsic into the >>> driver. >>> * Rename to UnalignedIoRead/Write16 and remove the alignment assert >>> * Read the BAR to get the address >>> * Use UnalignedIoRead/Write16 >> >> Whoa, straight to the lowest level. But works fine. Adds gcc >> dependency though. Incremental patch attached FYI. > > Can you just mandate a newer QEMU for this device, and use the saner BAR > you added, that doesn't require unaligned accesses?
That works for the standard vga card, but not the other vga cards we have (vmware, qxl). Nevertheless fixing this on the qemu side is an option, just need to mirror the bochs dispi data register on a aligned address. qemu already uses another address for !x86 archs exactly because of the alignment issue. cheers, Gerd ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
