Hi Sajeesh,

The variable nested in get opcode must be a member in the predefined  storage. 
How do you define the NVConfig? Can you attach this code also?


Attach sample code in Vfr.vfr in (MdeModulePkg/Universal/DriverSampleDxe)

      read    cond (get(MyIfrNVData.SerialPortStatus) != 0 ? 0 : ...

      varstore DRIVER_SAMPLE_CONFIGURATION,     // This is the data structure 
type
         varid = CONFIGURATION_VARSTORE_ID,      // Optional VarStore ID
     name  = MyIfrNVData,                    // Define referenced name in vfr
     guid  = DRIVER_SAMPLE_FORMSET_GUID;     // GUID of this buffer storage

Thanks,
Eric

From: sajeesh KK [mailto:[email protected]]
Sent: Wednesday, August 14, 2013 10:39 AM
To: [email protected]
Subject: [edk2] get operator in vfr file

Hello all,
I have a bitmap in NVConfig structure. I am trying to get its value using "get" 
operator in vfr file.
get(NVData.bitmap). based on this bitmap, i am selectively hiding some options 
to the user.
Problem is, get is unable to extract the bitmap from the NVConfig structure. If 
i hardcode the bitmap
it works ok. The statement in vfr file is:
suppresif(get(NVData.bitmap) & 0x1) == 0x0;
Please let me know am i miising something. any pointers are greatly appreciated.
Thanks,
Sajeesh.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to