From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (EUR03-DB5-obe.outbound.protection.outlook.com [40.92.71.90]) by mx.groups.io with SMTP id smtpd.web09.1845.1642363292806508049 for ; Sun, 16 Jan 2022 12:01:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=cD5RNnaE; spf=pass (domain: outlook.com, ip: 40.92.71.90, mailfrom: kilian_kegel@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L40LHPXnyE07yKfixRgGv/Vm/DQUvLvS8Iakt8nizs3JIjbKZLf148fQ1Rw/EDtLKfHXHE11gjsjmLwdavGA08/TK/HbRTmEAE5HLTQEscoUeB5aubn9OTuYxAVVM6M69sD30wQ1U0A6bdKstzbWQUgocSbFq2Cqtve2UhkpUaau0r6cHY+0pf4/N1WRY4aof6rI4tQrpL5EN9RtSDGheX1/M35LCkgD5T+PGKLD33S8NX76se0oKDGqpN/ooxy1WgTg5muSej91cagA79GSRPQpmzodkKhCaHoLrbMaDvVbOJnzYAshqD/XSngL54QTS/+Rq/o3r7ZKgYbCOoGgxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GJbcUX2TiewXOIKJayp42xyoY1Ro+Nqo5FkNs7Mkaxg=; b=VA0iUhHbLbxOaUO2XFbFQyv6XYfWN82U2DI1B3+H/sJNd46OtKjrVpJkItfHk4NVwFYZ70Ukfah8iixIt3cTBuAiOZXfAV+8xfR3WsBHMQcWSYlZogDEtgBcTMfvglJ48MCYUY2olo6MX4QQT5bjLI9IBDXMMFoUe7lmLMpnlYndNsbF2fo1qj+2YzGH+eNk2UfTNmn0wRcbCkRAgpWALBXkNumhTebQ0f+7RSm5qD3v0u3ZBtwdgvKnnCKq1Y3Bq23/+q+15BLxj63hoJFeVpFEpafaEHwdM2vaG68phxynzqNhahGJREemFjMj+nkCm2kBQg0vavcwhflbuC2rSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none 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:X-MS-Exchange-SenderADCheck; bh=GJbcUX2TiewXOIKJayp42xyoY1Ro+Nqo5FkNs7Mkaxg=; b=cD5RNnaE3tJzODRniCvBz8pbjkkXU0n5cJjHzPLB7xFkoXbocLN0mmsQVuBmS+OmHOLvV1ytHKK4EXFjafBgcMlLiDeljQXrNUHrOzaQQ35GGr2xEYQ1sDzFtLY+FKScwcKDqSNUJOIcV3hIHMG20Pf7zYMBQKi/f452cmtr3VYdGlti7DAPRUOx+o7k3PiSdrMa4lt0I3n0HjGueI8VsUXbh7Zc57rTyR6T494Gcv3nT5fpKwJhaebg3atD6dN5IuZtN0NXAOSsUp4UShWz+1v5UfqftTQgOS/re/trxE8qBneo7LdUZlXDoI4b0qVtLcPonePLGJfuLejvfNjrnw== Received: from AM8P190MB0945.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1d0::21) by DB8P190MB0634.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:12d::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Sun, 16 Jan 2022 20:01:30 +0000 Received: from AM8P190MB0945.EURP190.PROD.OUTLOOK.COM ([fe80::88b4:c09b:8790:e490]) by AM8P190MB0945.EURP190.PROD.OUTLOOK.COM ([fe80::88b4:c09b:8790:e490%4]) with mapi id 15.20.4888.013; Sun, 16 Jan 2022 20:01:30 +0000 From: "Kilian Kegel" To: "devel@edk2.groups.io" , Maciej Rabeda CC: "Rabeda, Maciej" , Rebecca Cran , "tim.lewis@insyde.com" , Mike Kinney , "afish@apple.com" , Leif Lindholm , Michael Kubacki , "abner.chang@hpe.com" Subject: CdePkgBlog 2022-01-16 -- Introduction of the ACPICA port to UEFI Thread-Topic: CdePkgBlog 2022-01-16 -- Introduction of the ACPICA port to UEFI Thread-Index: AQHYCxPa8T4mhOsPIE6DSd3EaPnsFw== Date: Sun, 16 Jan 2022 20:01:30 +0000 Message-ID: References: <0fb201d783ff$75096c90$5f1c45b0$@insyde.com> <20210804110321.ru56hfsyrfrviuwk@leviathan> <10E41009-D3D6-4166-8843-1D04ECA6CC59@apple.com> <16984DDFBF70DC40.16396@groups.io> <9d11fe9d-b712-0c43-78e4-ff185112336b@linux.intel.com> <16BBD01DEB5EF921.4083@groups.io> In-Reply-To: Accept-Language: en-US X-Mentions: maciej.rabeda@linux.intel.com X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [HXWCoa3K417vQyfLIK6piaeUH1XdJ50U7pjvowbIhUNuo7C+zd+KMNWE8m+0ibKh] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 04cfbf73-3166-4b12-c14e-08d9d92afcd7 x-ms-traffictypediagnostic: DB8P190MB0634:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NpM4YL+mJWiH9AwYLo/uT+/NrVafxrCtt4CqX/KTZRgUMp074m0jgAcZCiqKkloMuSfWMhfmf3Qc6zXI4xlChB8vgX5Wn9VaEGh0uoLj/ZvIiTC7k5oSa1B7dGsxMxUyYWeaSychUXRDk6FgP4mKEhpHgyBaaEiiHEfYNjplPV+t5wlVan8qw5gctZ4GC27nBJo03ySCFBf5rBxUkUfgqLnqILVhW4P6bwGrHvn5rcr0E9l//3DON9BAkBfy+/i3qdV+Ec66BuiCsqwMvN4BifZJhzvZiuGXYxCOOPhvV4GKz6UQw0irx7zGADKVIa+YycEI9JdX/h/4mUjJn5IZJURi30YvaTd1oG1SMxdQLZQkAxPjjQ4sGozlCCRjekTE4L/eZ4UvkY/21Xqdxif+UqF+AaeLc25IzB0S6XFZ0fDjSXNE7hNIzRglC19WxusRyypFOmWC6sMxnyxrWXIDYx9cAackT71KZsV/dxy7rkgh98P1SGnX0J/jV2cuyu54IIQv+DXf2QBiVAcKRg5LsbZbprSKUI6Cy0nDyNeN3uZGF4Qpzhzgz9UmuliuWpEOKF6K4APDSvM6i34wTbMTNHxKfHd914Dj6gnQtm4yyUv84IrzP7wila5kfcT7C4MdDN4rrfNaOmFToH7qt2JS4uKMO5NnlIlltFxapQTXdBM= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?zktC/bOUV7KSlbHrjqhvVoemk+nE5+KVvAfaTc1DhLwRixE9iYAcaoKp?= =?Windows-1252?Q?g5r+feDPV8oj/TUc9UkSxkYWFbieX+955kvNahX3M/quw8f3llkJglz1?= =?Windows-1252?Q?eE+AdewDtKEsAt/aLGwe6+r1Czo/fA0/S0lL/144NB9Rg3xxgc6r9TKu?= =?Windows-1252?Q?UMDcYFzULr9IBkfoYaCk3vKv2mVY+X/BDz4O4Jf2gxLKGR56O5fENzWq?= =?Windows-1252?Q?6ykV/AYgtckK0yFN39/JdBLRDUrSOuFFXquV3FpDZgglQOsjaDmmx2vN?= =?Windows-1252?Q?ALb1l/1RgBGMV5/48EvLqVpZqHoEtJx2aI4y92uo70LAt36/LxxA3a8f?= =?Windows-1252?Q?Qn55zPIcWSbXaklrnI7JT2GVfKmW155TBUNlXQAdnq049iHhKEkxmDaB?= =?Windows-1252?Q?aqU4KUDBKVuEpCqsO5hO1730HkA6AJ0SEuVjUegPD459xHDuUqlIYtj2?= =?Windows-1252?Q?EUBnKHdBT/6v7ahHSW4Tvqk4Dp1XxLUCys0b+t6YCopotLyZMlT42mCP?= =?Windows-1252?Q?vtwJuXYAXP1jiCDhKEo6z1n53GnqfmWv01owxo5LSRawCyOdamWgBBea?= =?Windows-1252?Q?O5AhOvMHJOh3pL3M/UEvmPPE2toWvywA/AA8VikNwblvshZoViPQjo+d?= =?Windows-1252?Q?Q6NXKQ6JJ/NFbE48gZdeNeriuAkbiVjTdbT+LKAOpIlK3/YhB8rV67IJ?= =?Windows-1252?Q?E/lgwC15g4GfTONGdnlq7uCkuqkh5LBhypAib3ogHvRv7mRMAlsLBUcD?= =?Windows-1252?Q?gdLUuhloB5hYI6i4GXaiI75Kmo7Ev8j/cxTVPIMAHPlFvoPZHpChHkRX?= =?Windows-1252?Q?zjxl16JwIQsHbNRs+ozJvxfaIhkZuRF9A6Cs1gZdLw5R/7Wnxy9kWNW9?= =?Windows-1252?Q?bdypTAhijftuTpnzMUKNTq4HSd/j2s5uvx/Ep42SFNn00+VJNLcyxVVD?= =?Windows-1252?Q?8jYIJT2FqHESlJklBp81Xh8wW1z2jLVd0TpSxP1twLGKoRj/+R/6gJdX?= =?Windows-1252?Q?owSbj7IV/8XqZdxzc8h5OlDXGYN9383DfKy51qy5up3GU2PpPKybmewc?= =?Windows-1252?Q?OWVqjSkQ+U3LhIPcC8QHzUfMZ/lApLnlvQqIj7PneFy5DhplAi+WztTc?= =?Windows-1252?Q?u6U=3D?= MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM8P190MB0945.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 04cfbf73-3166-4b12-c14e-08d9d92afcd7 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2022 20:01:30.3019 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8P190MB0634 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_AM8P190MB0945420998C742947DFD6559EB569AM8P190MB0945EURP_" --_000_AM8P190MB0945420998C742947DFD6559EB569AM8P190MB0945EURP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Andrew, hi Jordan, hi Maciej, hi all, this task was suggested by @ajfish and @jljusten at tianocore / tianocore.g= ithub.io: https://github.com/tianocore/tianocore.github.io/wiki/Tasks#port-acpi-ca-to= -a-shell-application. All in all it could be solved within a really small amount of time, with a = small amount of changes and extensions some months ago * build Visual-ACPICA-for-UEFI-Shell: https://www.youtube.com/watch?v= =3DPOfSJQXi2aM * run ACPIDUMP.efi and ASLCOMPILER.efi: https://www.youtube.com/watch?v= =3DoA1GA95WrF0 My concept here was to choose the existing Microsoft VisualStudio package a= nd adjust it to run in the UEFI environment, by reimplementing missing Win32-A= PI functions (amount of 8). This could be done using the Microsoft-C-Library compatible toro-C-Library<= https://github.com/KilianKegel/toro-C-Library#toro-c-library-formerly-known= -as-torito-c-library> Maybe that concept is also useable for porting =93openSSH=94 to UEFI Shell:= https://github.com/tianocore/tianocore.github.io/wiki/Tasks#port-openssh-a= s-a-shell-application @Maciej Rabeda The toro-C-Library source code is included in the project. You can check what is inside, how it works internally and how I do believe = a C-Library for UEFI Shell/SMM/DXE/PEI should be constructed that guarantees compatibility/portability+testability for POST drivers and UEFI/Windows She= ll applications by design. The =93toro-C-Library=94 build engine is VisualStudio/msbuild.exe only. It = takes 20 Seconds to get it done. The older =93torito-C-Library=94 build engine is EDK2Build. It takes 120 se= conds to get it done, for the same result, on the same build machine. If you want to build the samples, please get the entire CdePkg from edk2-st= aging that also includes the blog, https://github.com/tianocore/edk2-staging/tree/CdePkg If you just want to read the new blog: https://github.com/tianocore/edk2-staging/blob/CdePkg/blogs/2022-01-16/READ= ME.md#cdepkgblog-2022-01-16 Enjoy the breathtaking speed and elegance of VisualStudio Have fun, Kilian --_000_AM8P190MB0945420998C742947DFD6559EB569AM8P190MB0945EURP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hi Andrew, hi Jordan, hi Maciej, hi all,

 

this task was suggested by @ajfish and @jljusten at = tianocore / tianocore.github.io:

https://github.com/= tianocore/tianocore.github.io/wiki/Tasks#port-acpi-ca-to-a-shell-applicatio= n.

 

All in all it could be solved within a really small = amount of time, with a small amount of changes and extensions  some mo= nths ago

 

 

My concept here was to choose the existing Microsoft= VisualStudio package and

adjust it to run in the UEFI environment, by reimple= menting missing Win32-API functions (amount of 8).

This could be done using the Microsoft-C-Library com= patible toro-C-Library

 

Maybe that concept is also useable for porting =93op= enSSH=94 to UEFI Shell: https://github.com/tianocore/tianocore.github.io/wiki/Tasks#port-openssh-as= -a-shell-application

 

@Maciej Rabeda

The toro-C-Library source code is included in the pr= oject.

You can check what is inside, how it works internall= y and how I do believe a

C-Library for UEFI Shell/SMM/DXE/PEI should be const= ructed that guarantees

compatibility/portability+testability for POST drive= rs and UEFI/Windows Shell applications by design.

 

The =93toro-C-Library=94 build engine is VisualStudi= o/msbuild.exe only. It takes 20 Seconds to get it done.

The older =93torito-C-Library=94 build engine is EDK= 2Build. It takes 120 seconds to get it done, for the same result,

on the same build machine.

 

If you want to build the samples, please get the ent= ire CdePkg from edk2-staging that also includes the blog,

https://github.com/tianocore/edk2-staging/tree/CdePkg

 

If you just want to read the new blog:

https://gith= ub.com/tianocore/edk2-staging/blob/CdePkg/blogs/2022-01-16/README.md#cdepkg= blog-2022-01-16

 

Enjoy the breathtaking speed and elegance of VisualS= tudio

 

Have fun,

Kilian

 

 

--_000_AM8P190MB0945420998C742947DFD6559EB569AM8P190MB0945EURP_--