[edk2] stdlib: printf resets errno

2013-08-29 Thread David F.
in the IIO.c module IOO_Write function it resets errno to zero (line 125) for no reason which makes using printfs during debugging problematic without changing it to not set errno unless an error occurs. -- Learn the lates

Re: [edk2] [Qemu-devel] OVMF hung on qemu 1.6.0 with KVM

2013-08-29 Thread Gary Ching-Pang Lin
On Wed, Aug 28, 2013 at 02:55:26PM +0200, Andreas Färber wrote: > Am 28.08.2013 14:10, schrieb Laszlo Ersek: > > On 08/28/13 13:49, Andreas Färber wrote: > >> Am 28.08.2013 13:45, schrieb Laszlo Ersek: > >>> (qemu-devel CC'd) > >>> > >>> On 08/28/13 12:35, Gary Ching-Pang Lin wrote: > Hi, > >>

Re: [edk2] [PATCH] MdePkg//BaseLib: Add Memory fence for AArch64

2013-08-29 Thread Olivier Martin
One of the new drivers we use on AArch64 has a dependency on MemoryFence(). We do not use (yet) this driver on ARM 32-bit. Olivier From: Gao, Liming [mailto:liming@intel.com] Sent: 29 August 2013 01:11 To: Olivier Martin; Kinney, Michael D Cc: edk2-devel@lists.sourceforge.net Subject:

[edk2] TableSize parameter of SmmInstallConfigurationTable().

2013-08-29 Thread Mars Lin
PI specification vol.4 gives the prototype of SmmInstallConfigurationTable as: Prototype typedef EFI_STATUS (EFIAPI *EFI_SMM_INSTALL_CONFIGURATION_TABLE2) ( IN CONST EFI_SMM_SYSTEM_TABLE2 *SystemTable, IN CONST EFI_GUID *Guid, IN VOID *Table, IN UINTN TableSize ) Is there anyone know why the TableS

Re: [edk2] Bios to UEFI migration doubt

2013-08-29 Thread Rafael Machado
Thanks for the answer Esfahani, I'll take a look at these documents. If someone know the place of some specific document please send me the link. Thanks everyone Rafael R. Machado 2013/8/28 Cameron Esfahani > Because your hypothetical system is missing CSM and legacy support? > > They're the

[edk2] Speaking of CSM - Can it be loaded dynamically by application?

2013-08-29 Thread David F.
Speaking of the CSM - can that be loaded by an UEFI boot application as needed. In other words, system boots pure UEFI, boot code says it want's CSM to boot DOS, so can it load the CSM at that point and continue on? -- Le

[edk2] stdlib: using open() to opendir() ?

2013-08-29 Thread David F.
Is it standard to use open() to open a dir. Shouldn't open() fail if it's a dir normally?? You could setup a support opendirandfile() and open() could call that and opendir() could call that from which they could then check the attributes to determine if a file or dir and fail open() for dir and

Re: [edk2] Bios to UEFI migration doubt

2013-08-29 Thread Andrew Fish
On Aug 28, 2013, at 6:39 PM, Rafael Machado wrote: > Hi everyone. > > I have a question that is probably simple for those who have more knowledge > about UEFI. > > Supose I have PXE boot DOS application that run on systems with the old bios > (not uefi systems). > My question is: > > Wi

Re: [edk2] stdlib: using open() to opendir() ?

2013-08-29 Thread David F.
I guess under the *nix environment open can be used to open a dir...so On Thu, Aug 29, 2013 at 9:13 AM, David F. wrote: > Is it standard to use open() to open a dir. Shouldn't open() fail if > it's a dir normally?? You could setup a support opendirandfile() and > open() could call that and

Re: [edk2] Bios to UEFI migration doubt

2013-08-29 Thread Andrew Fish
On Aug 29, 2013, at 9:22 AM, David Woodhouse wrote: > On Thu, 2013-08-29 at 09:13 -0700, Andrew Fish wrote: >> In the this case it is easy to explain. In UEFI (without CSM) there is >> no need to have a real mode IDT so there is typically nothing at >> address 0 (the protected mode/long mode IDT

Re: [edk2] Bios to UEFI migration doubt

2013-08-29 Thread David Woodhouse
On Thu, 2013-08-29 at 09:13 -0700, Andrew Fish wrote: > In the this case it is easy to explain. In UEFI (without CSM) there is > no need to have a real mode IDT so there is typically nothing at > address 0 (the protected mode/long mode IDT is usually not at zero). > But even if the vector table exi

Re: [edk2] Bios to UEFI migration doubt

2013-08-29 Thread David Woodhouse
On Thu, 2013-08-29 at 09:40 -0700, Andrew Fish wrote: > There are a few issues. 1) From a security perspective SMM is locked > at this point and you can't add SMM drivers. Why is this important? > Well BIOS/DOS assume a PS/2 keyboard controller so for USB keyboards > the BIOS typically has a USB st

Re: [edk2] Bios to UEFI migration doubt

2013-08-29 Thread Andrew Fish
On Aug 29, 2013, at 9:55 AM, David Woodhouse wrote: >> >> Then there are problems with getting the hardware into the correct >> state. Like needing a BIOS Option ROM to get the video controller in >> VGA mode (DOS code can poke the video memory directly). > > Well, if your app really assumes

[edk2] Hotplug broken Windows Server 2012?

2013-08-29 Thread Jeff VanDellen
Greetings ovmf devs, Recently I've noticed that hotplug does not appear to work in Windows Server 2012 using virtio drivers with edk2.git-ovmf-x64 release: 20130829.b267.g6ce5535 from the following repo http://www.kraxel.org/repos/jenkins/edk2/ Usually there is a safely remove hardware

[edk2] Hotplug broken Windows Server 2012

2013-08-29 Thread Jeff VanDellen
Greetings ovmf devs, Recently I've noticed that hotplug does not appear to work in Windows Server 2012 using virtio drivers with edk2.git-ovmf-x64 release: 20130829.b267.g6ce5535 from the following repo http://www.kraxel.org/repos/jenkins/edk2/ Usually there is a safely remove hardware

Re: [edk2] Hotplug broken Windows Server 2012

2013-08-29 Thread Laszlo Ersek
Hi Jeff, On 08/29/13 20:46, Jeff VanDellen wrote: > Greetings ovmf devs, > > Recently I've noticed that hotplug does not appear to work in Windows > Server 2012 using virtio drivers with edk2.git-ovmf-x64 release: > 20130829.b267.g6ce5535 from the following > repo http

Re: [edk2] OVMF hung on qemu 1.6.0 with KVM

2013-08-29 Thread Laszlo Ersek
On 08/28/13 12:35, Gary Ching-Pang Lin wrote: > Hi, > > I recently updated qemu to 1.6.0 and found OVMF just showed a blank > screen when kvm was enabled. I tried to dump OVMF log with the > following commond but nothing was stored in debug.log. > > qemu-system-x86_64 -s -enable-kvm -bios OVMF.fd

Re: [edk2] Mixed Section Types for PCD

2013-08-29 Thread Chip Ueltschey
Thanks, I am still struggling with what the right thing is, though. It seems to me that if the driver is the one to use the PCD in a way that requires that this PCD resolve to a Dynamic type (not a FixedAtBuild type). And if the DEC file provided options for the PCD, i.e. [PcdsFixedAtBuild,PcdsPat

Re: [edk2] Mixed Section Types for PCD

2013-08-29 Thread Andrew Fish
On Aug 29, 2013, at 2:41 PM, Chip Ueltschey wrote: > Thanks, > > I am still struggling with what the right thing is, though. > It seems to me that if the driver is the one to use the PCD in a way that > requires that this PCD resolve to a Dynamic type (not a FixedAtBuild type). The INF file

Re: [edk2] Mixed Section Types for PCD

2013-08-29 Thread Chip Ueltschey
So...that means that you cannot specify in the INF file that the PcdType should be Dynamic? -chip On Thu, Aug 29, 2013 at 3:07 PM, Andrew Fish wrote: > > On Aug 29, 2013, at 2:41 PM, Chip Ueltschey wrote: > > Thanks, > > I am still struggling with what the right thing is, though. > It seems to

Re: [edk2] Mixed Section Types for PCD

2013-08-29 Thread Andrew Fish
On Aug 29, 2013, at 4:16 PM, Chip Ueltschey wrote: > So...that means that you cannot specify in the INF file that the PcdType > should be Dynamic? Yes in the INF you can only specify could, not should. > -chip > > > On Thu, Aug 29, 2013 at 3:07 PM, Andrew Fish wrote: > > On Aug 29, 2013,

Re: [edk2] [PATCH] MdePkg//BaseLib: Add Memory fence for AArch64

2013-08-29 Thread Gao, Liming
Martin: From library point, it should be complete for any arch. Now, we know this issue. I suggest to fix it. Thanks Liming From: Olivier Martin [mailto:olivier.mar...@arm.com] Sent: Thursday, August 29, 2013 4:55 PM To: Gao, Liming; Kinney, Michael D Cc: edk2-devel@lists.sourceforge.net Subjec

[edk2] stdlib: eficdefs.h file addition

2013-08-29 Thread David F.
Adding #include to the top of the eficdefs.h file sure does help existing code build without having to reorder or add things. -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy w

Re: [edk2] [Qemu-devel] OVMF hung on qemu 1.6.0 with KVM

2013-08-29 Thread Gary Ching-Pang Lin
On Fri, Aug 30, 2013 at 02:04:40AM +1000, Bruce Rogers wrote: > >>> On 8/29/2013 at 02:23 AM, Gary Ching-Pang Lin wrote: > > On Wed, Aug 28, 2013 at 02:55:26PM +0200, Andreas Färber wrote: > >> Am 28.08.2013 14:10, schrieb Laszlo Ersek: > >> > On 08/28/13 13:49, Andreas Färber wrote: > >> >> Am

Re: [edk2] OVMF hung on qemu 1.6.0 with KVM

2013-08-29 Thread Gary Ching-Pang Lin
On Thu, Aug 29, 2013 at 11:16:34PM +0200, Laszlo Ersek wrote: > On 08/28/13 12:35, Gary Ching-Pang Lin wrote: > > Hi, > > > > I recently updated qemu to 1.6.0 and found OVMF just showed a blank > > screen when kvm was enabled. I tried to dump OVMF log with the > > following commond but nothing was

Re: [edk2] [Qemu-devel] OVMF hung on qemu 1.6.0 with KVM

2013-08-29 Thread Paolo Bonzini
Il 30/08/2013 05:28, Gary Ching-Pang Lin ha scritto: >> > I tried this out, and I get the black screen as well when ept=n, but it >> > boots >> > successfully to the efi shell when ept=y. >> > >> > Gary, what does 'cat /sys/module/kvm_intel/parameters/ept' report on your >> > failing machine? >>