Hi Haojian
I am not sure if I understand your question. But I just try to answer:
If you use memory type named " EfiRuntimeServicesData", this memory region will 
be reserved by UEFI OS automatically.
If you use driver type " DXE_RUNTIME_DRIVER", the driver will be allocated into 
" EfiRuntimeServicesCode". Then the memory region will be reserved by UEFI OS 
automatically.

There are something you might need be aware: The virtual memory in OS does not 
same as physical memory, so your driver might need to run gRT->ConvertPointer().
You may refer to one of runtime driver in EDKII as reference.

Thank you
Yao Jiewen

-----Original Message-----
From: Haojian Zhuang [mailto:[email protected]] 
Sent: Friday, April 24, 2015 10:31 AM
To: [email protected]
Subject: Re: [edk2] Variable Storage Driver


在 2015/4/24 10:25, Haojian Zhuang 写道:
>
> 在 2015/4/24 10:03, Yao, Jiewen 写道:
>> Hi Haojian
>> Thanks for the sharing.
>>
>> May I know if you have validated variable set in UEFI runtime?
>> I found it is marked as DXE driver instead of RUNTIME driver. But 
>> maybe I am wrong.
>>
> Yes, you'r right. I only verified it as DXE driver. I'll try to access 
> it for RUNTIME case. Thanks for reminder.
>
When I try to use RUNTIME service, I should reserve UEFI memory in linux 
kernel. How could I know how much memory should I reserve? What's the start 
address?

Best Regards
Haojian

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud Widest 
out-of-the-box monitoring support with 50+ applications Performance metrics, 
stats and reports that give you Actionable Insights Deep dive visibility with 
transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to