From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-x232.google.com (mail-pg0-x232.google.com [IPv6:2607:f8b0:400e:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id D84E82095BB68 for ; Tue, 5 Sep 2017 10:19:31 -0700 (PDT) Received: by mail-pg0-x232.google.com with SMTP id v66so10484932pgb.5 for ; Tue, 05 Sep 2017 10:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=L/DldNnazY9n10YAF5g5rq2DP8Tlbfp2lVCOBpUPFFI=; b=HrdFYyP07prtUgyP9MZIYg/LyFs5uPbS+B+q3hKCo0YUs/4SjCmKzFCUAptDgeT1ad LlGRZOVLY5pyxJBLN5Vg4V58SaU+0juhAJZl+URyGcyyuj2oHQ3G1IolhnFjhu8rZvNy wTDwTNi7+WEFSWtE5LFl67ZUYT80qhmKP+ZR741XNHsTGXOEB7EO2uFqO9h/IZK4pOFY +ndL35W7pEDUxBYc8cpLhhw2vdgFDUHuCVFdI+ZodhY/KZlO9OXIXB4+dhQgxuOB5bge Be3R3/pDO2RNPWfep+iIoSbUP1pJ+eF7CkcRPZAxGd49X1zYvQ2rkjGWu2Ta7aCbuY7b Xl8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=L/DldNnazY9n10YAF5g5rq2DP8Tlbfp2lVCOBpUPFFI=; b=FjuCz1AP6ZMffRIt2zH6PvoVxmv+XwXEsfTEXWjhZ3jCkGraavSCWCdxk1wePT3Qye AssA9GkvneRWcqQIzuHt4onVDP2nML2+xQ8XkBttpu75r7YtG/b8NY3RagyExUsN/ACD Y6CDdiHeLro+NIHir+AJpWfGdS2A0ayhd9Dlfm7TX6l4nIXCqMLJrcfU9wilV1x9vxOk oV53zoc2jloIrIP+be21ODWE29OuLssEqMA9vRdQk3ltH7Tv7bKXMZ+erJDbZCWb9iuq EIF0T8EDip10mcKL2qJlyi+joB2WbsY9LZSB7EpY1aJ5cXMXicvuYwouMRkCAlhrHV5D Ddfg== X-Gm-Message-State: AHPjjUh3MEcfqqm34mFo0CNz/fTvqmgdkycjwTymOWBubDdpzdan6ZSn MlZugEPIc6pPTY8l X-Google-Smtp-Source: ADKCNb5HYFHz25w3mOlHcKIlw7llQsibdoExq3Dc1BAq0cVoQfiZG+t3RBs28KSo2Xbv3G3KhZEwEw== X-Received: by 10.99.96.133 with SMTP id u127mr4715022pgb.237.1504632140435; Tue, 05 Sep 2017 10:22:20 -0700 (PDT) Received: from [192.168.1.100] ([104.169.197.237]) by smtp.gmail.com with ESMTPSA id a29sm3630476pgn.75.2017.09.05.10.22.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 10:22:19 -0700 (PDT) To: edk2-devel@lists.01.org References: <4a065bac6df2410283efb3fcb91102f9@BLRX13MDC406.AMER.DELL.COM> <3b1b319c-59da-7336-ba27-1f5a557907f8@gmail.com> <11beaaa4620a46aa89b15c897982971e@BLRX13MDC406.AMER.DELL.COM> From: Blibbet Message-ID: Date: Tue, 5 Sep 2017 10:22:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Subject: Re: Accessing RT services from OS X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Sep 2017 17:19:32 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US You might want to look at Firmware Test Suite, it includes a Linux kernel driver to help with it's interactions with UEFI. Note that this is a Linux-centric test suite, solution won't work for other OSes. http://kernel.ubuntu.com/git/hwe/fwts.git https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1633506 https://patchwork.kernel.org/patch/9323781/ http://www.basicinputoutput.com/2016/03/introduction-to-firmware-test-suite-fwts.html HTH, Lee Fisher On 09/05/2017 12:32 AM, Marvin H?user wrote: > 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 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel >