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

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