From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-oln040092066063.outbound.protection.outlook.com [40.92.66.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5387B21EA35D9 for ; Tue, 5 Sep 2017 00:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FKwcm/E51fvZ5gNaveYzihW3i41kJC1JOaVyNNe+58M=; b=pfaGwXmFQMvhtXA+vqlW5b12m6qGi5hSEqHzvZ2qZQNFWb6iQP+vL/e4Cmn775d8hVysI1HkKcDbNGJnjPjjpNrVgvTk1oM8nac5lM7sYH12D26o0Fx/vQ3jydejNR11jLleF3aXyCXo4wpMhGvJleMbBLsgtyU2jwx1Y58qD7miuWavS9vgakxZcE7TWZb2SQmTywhLDMKmLKcU/RAkLtAcjaMCVpzhETV6A1zom//JP+o8QKg/aVElbr6Tc0qQroCx1ru47sL8MdmYLbGpj2sVVYCCdardRByzdQfngLjmtqTJvfDmYsaVEwiSWgL8ERBlN1et8xJclNRIPm0Nwg== Received: from DB5EUR01FT045.eop-EUR01.prod.protection.outlook.com (10.152.4.54) by DB5EUR01HT058.eop-EUR01.prod.protection.outlook.com (10.152.5.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1385.11; Tue, 5 Sep 2017 07:32:25 +0000 Received: from AM4PR06MB1491.eurprd06.prod.outlook.com (10.152.4.55) by DB5EUR01FT045.mail.protection.outlook.com (10.152.4.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1385.11 via Frontend Transport; Tue, 5 Sep 2017 07:32:25 +0000 Received: from AM4PR06MB1491.eurprd06.prod.outlook.com ([fe80::6cae:b5f6:6e86:86b0]) by AM4PR06MB1491.eurprd06.prod.outlook.com ([fe80::6cae:b5f6:6e86:86b0%13]) with mapi id 15.20.0013.018; Tue, 5 Sep 2017 07:32:25 +0000 From: Marvin H?user To: "edk2-devel@lists.01.org" Thread-Topic: [edk2] Accessing RT services from OS Thread-Index: AdMlXWdY+un0F1I5RCu7u5A6KeqLNgACRnPQAATKG4AAIyWAMAADDFag Date: Tue, 5 Sep 2017 07:32:25 +0000 Message-ID: References: <4a065bac6df2410283efb3fcb91102f9@BLRX13MDC406.AMER.DELL.COM> <3b1b319c-59da-7336-ba27-1f5a557907f8@gmail.com> <11beaaa4620a46aa89b15c897982971e@BLRX13MDC406.AMER.DELL.COM> In-Reply-To: <11beaaa4620a46aa89b15c897982971e@BLRX13MDC406.AMER.DELL.COM> Accept-Language: de-DE, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lists.01.org; dkim=none (message not signed) header.d=none;lists.01.org; dmarc=none action=none header.from=outlook.com; x-incomingtopheadermarker: OriginalChecksum:08B87908F02EBDF557F23AEF842FA016A25C24315E1360F9D1D65D56BC6D21B4; UpperCasedChecksum:756DCBA353541C601A7FEF1F565827B12736E01A679F199668CD334225F5E7EF; SizeAsReceived:7328; Count:46 x-tmn: [LrbnlmDdWN1FN4ErZG05uiXn7YIl4VHi54AS8CaMN+gU5Xg3kP4MhYtgVzIMuwDF] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR01HT058; 6:s9Q1eOm8VnolQpgTcfiWxBt1DSAZUekCukGRPTMx+BIC8Qg5LTtUdHrWrXdjNQEjvEXfFntrbM0A05ddiPCOBXRKp3GpjPqT5HB/gSiPET0nugwaMP2wi/7yOCPNfidie4qx8SrguB77MVqGZfXW+7rGYWuxibyAI9nK+G/9JhUuC5Dt75Vna6ebo00ejm+F1qvX5PfVrrBOvKEV4un1aXHlX9lavYRMYty33CwsFEWkimW4Me+lOxzxsio+I/bsfTPuESxfvuXwvhaLCXjXKyRrF2WdbukUghuwTUcqPxRfL1jrM9cwRQqTp5FoXvIRmj9D6JffFtHxaxW26bx4dw==; 5:1bBLvCIvHqQu8nmcqRG4cMd61j0vlsTqb3MVKrgqmJcl6akEhFMEO2HVQa1bKtz/GFZsRN3axIi2qbnQ65hvHD7Xp0wrJzg9OXGatpX9a9dS5bIp97USdMhxfQ3756DhtAswgy//c5LzHMHsZqSwvA==; 24:TejD3MZ5czkcNF+LvNRra9IA9WahzJ55V9gje5L/ybsn8TgNns1TrwY2B9SCCCnfFcEA18yXSWlGePr0/e5/U5gMt5KEKfJk49yByGPX9/o=; 7:umI9jmLK7oA0dUO/6BLIfZgWffpn9O9a4EsmG3qWDyIkOKlSs9N0e5N88v9jvnpQuDSRZ5Pp6cnUHBbuQbz+pr3oNflGKKd/q6QvmSNDXPUfEgiXC++9MjbrU5SITwgi2zzimvdp/BfNhgVzgeb6O+vHy6hWXNae9qqG2WkrCaXu8RwRu4Ub8I8NYSeThxk6D7PUxQN8gHzGf2yVAAWf8+BxZvwwVX7nOPiBSLBedB0= x-incomingheadercount: 46 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 4731095b-4e7a-4569-7c9d-08d4f4304138 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(300000503095)(300135400095)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1603101448)(1601125374)(1701031045)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DB5EUR01HT058; x-ms-traffictypediagnostic: DB5EUR01HT058: x-exchange-antispam-report-test: UriScan:(60795455431006)(162533806227266)(56004941905204); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031); SRVR:DB5EUR01HT058; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DB5EUR01HT058; x-forefront-prvs: 0421BF7135 x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR01HT058; H:AM4PR06MB1491.eurprd06.prod.outlook.com; FPR:; SPF:None; LANG:; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Sep 2017 07:32:25.5286 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT058 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 07:29:41 -0000 Content-Language: de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Good morning, 1.) Do you mean whether the OS exposes the Runtime Services? Windows and Li= nux expose the Variable Services (Linux even more, if I remember correctly)= and macOS (not entirely sure about the latest version) the entire table vi= a DeviceTree. 2.) Yes, you need to write a DXE Runtime Driver. One way to do it is instal= l an UEFI Protocol and let the UEFI OS loader store its address (pay attent= ion 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 C= onfiguration Table. Though remember that the OS still has hardware ownershi= p, you might need to use Management Mode for your ideas. If you target Wind= ows, 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 cann= ot 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 >=20 > Hi All, >=20 > 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. ? >=20 > Regards, > Ankit Singh >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel