public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Do edk2 support PcdGetEx64 in library
@ 2017-03-09  2:45 wang xiaofeng
  2017-03-13  2:34 ` Gao, Liming
  0 siblings, 1 reply; 3+ messages in thread
From: wang xiaofeng @ 2017-03-09  2:45 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Hi ,
   Anyone knows whether edk2 support PcdGetEx64 in library?

   First I declare a PcdsDynamicEx in dec file
[PcdsDynamicEx]
   gEfixxxTokenSpaceGuid.PcdPasswordToken|0|UINT64|0x10000009
   
  Then I tried to use PcdGetEx64 in a library construct function
   OldToken = PcdGetEx64((CONST GUID *)&gEfixxxTokenSpaceGuid,PcdPasswordToken);


   There is a compile error:
 warning C4013: '_PCD_TOKEN_EX_PcdPasswordToken' undefined; assuming extern returning int
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Vc\bin\x86_amd64\cl.exe"' : return code '0x2'


  But I can use PcdGetEx64 or PcdSetEx64S in DXE drivers, so is there a limitation to set/get PcdsDynamicEx with PcdGetEx64/ PcdSetEx64S  in library��



 

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

* Re: Do edk2 support PcdGetEx64 in library
  2017-03-09  2:45 Do edk2 support PcdGetEx64 in library wang xiaofeng
@ 2017-03-13  2:34 ` Gao, Liming
  2017-03-22  1:48   ` Zhu, Yonghong
  0 siblings, 1 reply; 3+ messages in thread
From: Gao, Liming @ 2017-03-13  2:34 UTC (permalink / raw)
  To: wang xiaofeng, edk2-devel@lists.01.org

Xiaofeng:
  Thanks for your reporting. This is a tool issue. Please submit one bug in bugzillar. We will fix it. 

Thanks
Liming
>-----Original Message-----
>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
>wang xiaofeng
>Sent: Thursday, March 09, 2017 10:46 AM
>To: edk2-devel@lists.01.org
>Subject: [edk2] Do edk2 support PcdGetEx64 in library
>
>Hi ,
>   Anyone knows whether edk2 support PcdGetEx64 in library?
>
>   First I declare a PcdsDynamicEx in dec file
>[PcdsDynamicEx]
>   gEfixxxTokenSpaceGuid.PcdPasswordToken|0|UINT64|0x10000009
>
>  Then I tried to use PcdGetEx64 in a library construct function
>   OldToken = PcdGetEx64((CONST GUID
>*)&gEfixxxTokenSpaceGuid,PcdPasswordToken);
>
>
>   There is a compile error:
> warning C4013: '_PCD_TOKEN_EX_PcdPasswordToken' undefined; assuming
>extern returning int
>NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
>12.0\Vc\bin\x86_amd64\cl.exe"' : return code '0x2'
>
>
>  But I can use PcdGetEx64 or PcdSetEx64S in DXE drivers, so is there a
>limitation to set/get PcdsDynamicEx with PcdGetEx64/ PcdSetEx64S  in library?
>
>
>
>
>_______________________________________________
>edk2-devel mailing list
>edk2-devel@lists.01.org
>https://lists.01.org/mailman/listinfo/edk2-devel

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

* Re: Do edk2 support PcdGetEx64 in library
  2017-03-13  2:34 ` Gao, Liming
@ 2017-03-22  1:48   ` Zhu, Yonghong
  0 siblings, 0 replies; 3+ messages in thread
From: Zhu, Yonghong @ 2017-03-22  1:48 UTC (permalink / raw)
  To: Gao, Liming, wang xiaofeng, edk2-devel@lists.01.org

Hi Xiaofeng,

Just sent out the patch BaseTools: Fix build failure for DynamicEx Pcd used in the Library
Thanks. 

Best Regards,
Zhu Yonghong


-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Gao, Liming
Sent: Monday, March 13, 2017 10:34 AM
To: wang xiaofeng <winggundum82@163.com>; edk2-devel@lists.01.org
Subject: Re: [edk2] Do edk2 support PcdGetEx64 in library

Xiaofeng:
  Thanks for your reporting. This is a tool issue. Please submit one bug in bugzillar. We will fix it. 

Thanks
Liming
>-----Original Message-----
>From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of 
>wang xiaofeng
>Sent: Thursday, March 09, 2017 10:46 AM
>To: edk2-devel@lists.01.org
>Subject: [edk2] Do edk2 support PcdGetEx64 in library
>
>Hi ,
>   Anyone knows whether edk2 support PcdGetEx64 in library?
>
>   First I declare a PcdsDynamicEx in dec file [PcdsDynamicEx]
>   gEfixxxTokenSpaceGuid.PcdPasswordToken|0|UINT64|0x10000009
>
>  Then I tried to use PcdGetEx64 in a library construct function
>   OldToken = PcdGetEx64((CONST GUID
>*)&gEfixxxTokenSpaceGuid,PcdPasswordToken);
>
>
>   There is a compile error:
> warning C4013: '_PCD_TOKEN_EX_PcdPasswordToken' undefined; assuming 
>extern returning int NMAKE : fatal error U1077: '"C:\Program Files 
>(x86)\Microsoft Visual Studio 12.0\Vc\bin\x86_amd64\cl.exe"' : return 
>code '0x2'
>
>
>  But I can use PcdGetEx64 or PcdSetEx64S in DXE drivers, so is there a 
>limitation to set/get PcdsDynamicEx with PcdGetEx64/ PcdSetEx64S  in 
>library?
>
>
>
>
>_______________________________________________
>edk2-devel mailing list
>edk2-devel@lists.01.org
>https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

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

end of thread, other threads:[~2017-03-22  1:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-09  2:45 Do edk2 support PcdGetEx64 in library wang xiaofeng
2017-03-13  2:34 ` Gao, Liming
2017-03-22  1:48   ` Zhu, Yonghong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox