From: Marvin H?user <Marvin.Haeuser@outlook.com>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: Accessing RT services from OS
Date: Tue, 5 Sep 2017 07:32:25 +0000 [thread overview]
Message-ID: <AM4PR06MB149184074274ADF09A7BF62A80960@AM4PR06MB1491.eurprd06.prod.outlook.com> (raw)
In-Reply-To: <11beaaa4620a46aa89b15c897982971e@BLRX13MDC406.AMER.DELL.COM>
Good morning,
1.) Do you mean whether the OS exposes the Runtime Services? Windows and Linux expose the Variable Services (Linux even more, if I remember correctly) and macOS (not entirely sure about the latest version) the entire table via DeviceTree.
2.) Yes, you need to write a DXE Runtime Driver. One way to do it is install an UEFI Protocol and let the UEFI OS loader store its address (pay attention to allocate the structure from Runtime memory, update the pointers when going virtual and not use any Boot Services), another is to use the UEFI Configuration Table. Though remember that the OS still has hardware ownership, you might need to use Management Mode for your ideas. If you target Windows, I'm afraid software MMIs/ACPI or a shim for the RT Variable Services ("execute on variable write") are the only ways I know as you of course cannot alter the bootloader or access the System Table at runtime.
Regards,
Marvin.
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
> Ankit.Singh3@dell.com
> Sent: Tuesday, September 5, 2017 7:21 AM
> To: edk2-devel@lists.01.org
> Subject: [edk2] Accessing RT services from OS
>
> Hi All,
>
> Wanted to access RT services from OS.
> 1.) Are there any already such exposed OS function or utilities ?
> 2.) Can we plugin our own service/function to RT at run-time. ?
>
> Regards,
> Ankit Singh
>
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
next prev parent reply other threads:[~2017-09-05 7:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-04 10:22 Accessing RT services from OS Ankit.Singh3
[not found] ` <3b1b319c-59da-7336-ba27-1f5a557907f8@gmail.com>
2017-09-05 5:21 ` Ankit.Singh3
2017-09-05 7:32 ` Marvin H?user [this message]
2017-09-05 17:22 ` Blibbet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM4PR06MB149184074274ADF09A7BF62A80960@AM4PR06MB1491.eurprd06.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox