[edk2] How to add Unicode string in EDKII

2014-05-30 Thread cheney chen
Hi experts, First of all, this is not a real use case so don't be surprised if it looks to be strange question. I tried to print a simple Chinese string on screen, e.g. Chinese welcome string "欢迎您". Here is what I did (case is simplified wherever necessary). CHAR16 WelcomeStr[4];...WelcomeStr[0]

Re: [edk2] ReinstallProtocolInterface to notify filesystem driver?

2014-05-30 Thread Felipe Mesquita
Hi everyone, Thank you all for the answers - and I'm glad that this question at least was useful to fix a typo in the specs :) So if I understood it right, ReinstallProtocolInterface() is working in this case because: 1) It's calling ConnectController() under the hoods... 2) ...which triggers

Re: [edk2] Minnowboard and UDK debugger 1.4.

2014-05-30 Thread Ricardo Menzer
Hi! I'm using the Shell Bay development board (which is based on the Atom e6xx + EG20T) and I'm also having difficulties to connect to the debugger. When I try to connect the UDK Debugger to the target system, it says the debug agent version should be, at least, version 0.85. I'm using the Intel BL

Re: [edk2] UEFI Development Board

2014-05-30 Thread Ludovic Rousseau
2014-05-26 18:54 GMT+02:00 André Dantas : > Hello Everyone. > Hello, Do you recommend any board that supports UEFI development? I saw in the > Intel's website two options, but the shipping is limited to USA. Do you > have any suggestions( with shipment to Brazil )? > Can you give me the URLs of

[edk2] [PATCH] edksetup: Fix EDK_TOOLS_PATH misbehaving

2014-05-30 Thread Paulo Alcantara
From: Victor Gouveia EDK_TOOLS_PATH is not updated correctly when calling edksetup.bat in different workspaces, since if EDK_TOOLS_PATH is initially set to C:\a\BaseTools and then call edksetup.bat again in another workspace (e.g. C:\b\), the EDK_TOOLS_PATH will remain unchanged have the old path

Re: [edk2] How to add Unicode string in EDKII

2014-05-30 Thread Andrew Fish
On May 30, 2014, at 1:29 AM, cheney chen wrote: > Hi experts, > > First of all, this is not a real use case so don't be surprised if it looks > to be strange question. > > I tried to print a simple Chinese string on screen, e.g. Chinese welcome > string "欢迎您". Here is what I did (case is sim

Re: [edk2] ReinstallProtocolInterface to notify filesystem driver?

2014-05-30 Thread Laszlo Ersek
On 05/30/14 13:43, Felipe Mesquita wrote: > Hi everyone, > > Thank you all for the answers - and I'm glad that this question at least > was useful to fix a typo in the specs :) > > So if I understood it right, ReinstallProtocolInterface() is working in > this case because: > > 1) It's calling C

Re: [edk2] ReinstallProtocolInterface to notify filesystem driver?

2014-05-30 Thread Andrew Fish
On May 30, 2014, at 4:43 AM, Felipe Mesquita wrote: > Hi everyone, > > Thank you all for the answers - and I'm glad that this question at least was > useful to fix a typo in the specs :) > > So if I understood it right, ReinstallProtocolInterface() is working in this > case because: > > 1

[edk2] Signalling an event group

2014-05-30 Thread Justin_Johnson1
Hello all, I'm working with the DXE core event services and am not sure that the code in MdeModulePkg agrees with the UEFI spec. The situation is this: in several modules I have created an event using the CreateEventEx() method, with an EventGroup GUID. Later, I want to signal the event group, b

Re: [edk2] Signalling an event group

2014-05-30 Thread Andrew Fish
Justin, This looks like a bug in the DXE Core. As you point out the example in the UEFI spec on how to signal the event does not work in the edk2. I do not see a hard requirement that all events in an event group need to have a notification function. The spec seems to say the opposite, that a

Re: [edk2] Signalling an event group

2014-05-30 Thread Andrew Fish
On May 30, 2014, at 11:51 AM, Andrew Fish wrote: > > On May 30, 2014, at 11:00 AM, justin_johns...@dell.com wrote: > >> Hello all, >> I’m working with the DXE core event services and am not sure that the code >> in MdeModulePkg agrees with the UEFI spec. >> The situation is this: in several m

Re: [edk2] Signalling an event group

2014-05-30 Thread Justin_Johnson1
Andrew, Your suggested code makes sense to me, I will give it a try. Besides that sample code snippet, I don't think the spec isn't really explicit; but does imply that the entire group is signaled, regardless of whether the event itself is of type EVT_NOTIFY_SIGNAL. -- Justin -Original

Re: [edk2] Signalling an event group

2014-05-30 Thread Andrew Fish
On May 30, 2014, at 12:41 PM, justin_johns...@dell.com wrote: > Andrew, > Your suggested code makes sense to me, I will give it a try. Besides that > sample code snippet, I don’t think the spec isn’t really explicit; but does > imply that the entire group is signaled, regardless of whether the

Re: [edk2] Signalling an event group

2014-05-30 Thread Tim Lewis
Is this why we see a lot of created events with dummy notify functions? -Original Message- From: Andrew Fish [mailto:af...@apple.com] Sent: Friday, May 30, 2014 12:19 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] Signalling an event group On May 30, 2014, at 11:51 AM, Andr

Re: [edk2] Signalling an event group

2014-05-30 Thread Tim Lewis
Andrew-- It accounts for the strange usage I've seen. When the code wants to signal the event group, it also has to create an event in the event group. With the current codebase, you can see it creating dummy notify functions for this event, even though the intention is just to signal the other