From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (EUR02-AM5-obe.outbound.protection.outlook.com [40.92.67.74]) by mx.groups.io with SMTP id smtpd.web09.12373.1573498948812295810 for ; Mon, 11 Nov 2019 11:02:29 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@outlook.com header.s=selector1 header.b=n1l6tpnf; spf=pass (domain: outlook.com, ip: 40.92.67.74, mailfrom: kilian_kegel@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DsuWBKhDkXAF+dcBdfz1d1q7saJYTbqyFHuwhZCNnjMHluEuUuXnHQ82ykHCgPWD29SgOLhf6eon0Rj7axpxyJ2hAY8OJo/T8BA2yqZwyF4oFDCyLQVWTseM1TIel1IHqFbGtgkglSk0QnTNAduLchpAh+msbmjjYBJHgfL7UFtfMvbgHQP6jM+zdcO/0GLN5sAB9Fsvw5uTSGI27cEnE4RSuPMLSjp3KNdUkcgrnisGmNU0QMHwyvhofWdbhS8McoWP6GyS48CDS7e9f+8jdPZ0nbiVDCeKVtXbkn41rWvx+rM6y1U2rMO4oKOcXPp/F+qhOW11UR62BAthxDfr0w== 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-SenderADCheck; bh=vmcZreFpSA/6KcRhYCKeWHwdTXjosX2CctapuO8ebBA=; b=lc4/v/4b+MB0OcvH6eF8M9nUVOgGNNswyDrpEB69ySJbpsAtOqh+jkGVP1yQLQbgAh9SsCmVyFO8bfaWMOUTHCbaAkLu2nVa7pt5KJIDXIzjcDFM4wZgvIt4cNUYn5brQMaTSoroa7rtawiFQWwQpO1FYwy5fq6ujJIBNBUGbWu77fVYvT+Ws/1NotLCCV2Rgz4AgmkIq9UyHPqoQNhLgGCFlrX2jYlT8CnJEcSe0o7oTjvU0tcHw22SUqoamBsH9iA3DlZ4Lpum88GHoFAGDSrE+hngQt3+GU8Bpql3NGpzqth4X3+N7UdC4L7TGaLZDJDHX7CalEeafp9LXz1HkA== 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=vmcZreFpSA/6KcRhYCKeWHwdTXjosX2CctapuO8ebBA=; b=n1l6tpnfCMJRH6SLwJm+G70L5QKbEIskeDxqhjJ+xTOoyaxpSkMwXc8LEUwjyKyTY3FEjRmf8Xalv1xmdQQ2hav8DO47UvC+r0gLYL1YAPs8htvXshQw1XE6oasKwX9HnfBw15M8u71EJC+Z3OrZ2AgFxDeC+ycPObMBJ2BIAiyCfeE8biG7WvHjOgZ5r0mWwvjL1zTZM0NZ2ND6R/gjfFz6EVX7xyizqb9xmVDNt27fZZo+WJ7U8iKmHQL/wu2ido3EkQtlCBRZtniN55bUofpuVNZP6YGPbUWzorWuGWu4Hef1gcQOfjWxz/feue7c1+EIN6EbdLqKH4F08OdzKw== Received: from AM5EUR02FT026.eop-EUR02.prod.protection.outlook.com (10.152.8.60) by AM5EUR02HT228.eop-EUR02.prod.protection.outlook.com (10.152.9.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2430.20; Mon, 11 Nov 2019 19:02:26 +0000 Received: from VI1PR0502MB3968.eurprd05.prod.outlook.com (10.152.8.59) by AM5EUR02FT026.mail.protection.outlook.com (10.152.8.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20 via Frontend Transport; Mon, 11 Nov 2019 19:02:26 +0000 Received: from VI1PR0502MB3968.eurprd05.prod.outlook.com ([fe80::4408:c7c7:aaa3:2a91]) by VI1PR0502MB3968.eurprd05.prod.outlook.com ([fe80::4408:c7c7:aaa3:2a91%7]) with mapi id 15.20.2430.027; Mon, 11 Nov 2019 19:02:26 +0000 From: "Kilian Kegel" To: "devel@edk2.groups.io" CC: "Kinney, Michael D" , "Richardson, Brian" Subject: [staging/branch]: CdePkg - added unit test for remaining TIME.H functions - difftime(), mktime(), time(), asctime(), ctime(), gmtime(), localtime(), strftime() Thread-Topic: [staging/branch]: CdePkg - added unit test for remaining TIME.H functions - difftime(), mktime(), time(), asctime(), ctime(), gmtime(), localtime(), strftime() Thread-Index: AQHVmMKO6mx8N6jP2USvID6fDbfVlg== Date: Mon, 11 Nov 2019 19:02:26 +0000 Message-ID: References: <15D05F40761233FD.22068@groups.io>,<15D538D913DB9115.9779@groups.io> In-Reply-To: <15D538D913DB9115.9779@groups.io> Accept-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:AA711B377D59FCFE15FB693606EB817D469B3A89FC134E05C4C06982DCDA3084;UpperCasedChecksum:B10B40561C2C221C3A89156BBAA01C46924F673316C85AB5CB221D61A3ADD0F5;SizeAsReceived:7296;Count:45 x-tmn: [oUMHIZZ6jyQccBGcOlDGwOKz4EcaM/UW] x-ms-publictraffictype: Email x-incomingheadercount: 45 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: cf0b8122-828d-4558-5354-08d766d9b11c x-ms-traffictypediagnostic: AM5EUR02HT228: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: byALi3QFUdt9PsNo08cvnguf59PPxn6S8+6Zh1AJDOGL1//GZ4sNjPHcqAd1pi6/qEJexBquuVWxXQIsLxywMB/d+1k+N77cFxD/3CqJuwpFuXEGW+6Y1la+0/aGf/uAuVJoxcRvitVy9BSrAgiGdYGxyLc29DWJg7O30rbzFXQGM+pOvw2DJuhrSvzZwB4O x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: cf0b8122-828d-4558-5354-08d766d9b11c X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Nov 2019 19:02:26.0355 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR02HT228 X-Groupsio-MsgNum: 50379 Content-Language: en-US Content-Type: multipart/related; boundary="_004_VI1PR0502MB3968F748351141E461976107EB740VI1PR0502MB3968_"; type="multipart/alternative" --_004_VI1PR0502MB3968F748351141E461976107EB740VI1PR0502MB3968_ Content-Type: multipart/alternative; boundary="_000_VI1PR0502MB3968F748351141E461976107EB740VI1PR0502MB3968_" --_000_VI1PR0502MB3968F748351141E461976107EB740VI1PR0502MB3968_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi UEFI community, I=92d like to inform you about an update in the CdePkg branch of edk2-sta= ging. https://github.com/tianocore/edk2-staging/tree/CdePkg#cdepkg The goal of the CdePkg is to provide an ANSI C Interface for UEFI POST dri= vers, that enables BIOS engineers to (more) easily port standard C programs or l= ibraries (e.g. the openSSL library, already done) to POST drivers. Furthermore the ANSI C Interface is disseminated widely, also it=92s bugs = and pitfalls are known very well by a broad range of IT professionals and may help to be better supportable= by the open source initiative compared to the proprietary interface that is available today in Tianocore= UEFI. Now the ANSI C functions difftime() mktime() time() asctime() ctime() gmti= me() localtime() strftime() are introduced for PEI and DXE. Currently there are 4 examples implemented: 1. argvc: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeVali= dationPkg/HOSTED_ENV/argcv/main.c#L57 argc/argv handling according to https://msdn.microsoft.com/en-us/library/a= 1y7w461.aspx 1. systeminterfacePEI: https://github.com/tianocore/edk2-staging/blob/C= dePkg/CdeValidationPkg/SYSTEM_IF/systeminterfacePEI/main.c#L57 demonstration, how PeiServices and FileHandle are passed into main() 1. systeminterfaceDXE: https://github.com/tianocore/edk2-staging/blob/C= dePkg/CdeValidationPkg/SYSTEM_IF/systeminterfaceDXE/main.c#L57 demonstration, how SystemTable and ImageHandle are passed into main() ANSI C LIBRARY functions: 1. time.h clock(): https://github.com/tianocore/edk2-staging/blob/CdePk= g/CdeValidationPkg/TIME_H/clock/main.c#L1 for PEI and DXE phase. It provides TSC based, millisecond precise, exact a= nd chipset independent clock() function. NOTE: in emulation mode the TSC nominal frequency is supposed to be 1GHz https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/clock?vie= w=3Dvs-2019 1. NEW: time.h difftime(): https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/difftime-= difftime32-difftime64?view=3Dvs-2019 NEW: time.h mktime(): https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/mktime-mk= time32-mktime64?view=3Dvs-2019<%20https:/docs.microsoft.com/en-us/cpp/c-run= time-library/reference/mktime-mktime32-mktime64?view=3Dvs-2019> NEW: time.h time(): https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/time-time= 32-time64?view=3Dvs-2019<%20https:/docs.microsoft.com/en-us/cpp/c-runtime-l= ibrary/reference/time-time32-time64?view=3Dvs-2019> NEW: time.h asctime(): https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/asctime-w= asctime?view=3Dvs-2019 NEW: time.h ctime(): https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/ctime-cti= me32-ctime64-wctime-wctime32-wctime64?view=3Dvs-2019 NEW: time.h gmtime(): https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/gmtime-gm= time32-gmtime64?view=3Dvs-2019 NEW: time.h localtime(): https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/localtime= -localtime32-localtime64?view=3Dvs-2019 NEW: time.h strftime(): https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strftime-= wcsftime-strftime-l-wcsftime-l?view=3Dvs-2019 NOTE: All TIME.H functions support UTC only. All functions are tested in one single driver PEI/DXE: https://github.com/= tianocore/edk2-staging/blob/CdePkg/CdeValidationPkg/TIME_H/timehfunctions/m= ain.c#L52 Best Regards, Kilian From: Kilian Kegel Sent: Wednesday, October 23, 2019 10:03 PM To: devel@edk2.groups.io Cc: Kinney, Michael D; Richardson, Bria= n Subject: [edk2-devel] [staging/branch]: CdePkg - C Development Environment= Package Hi UEFI community, I=92d like to introduce the CdePkg to edk2-staging. Some time ago I decided to write my own ANSI C Library for UEFI Shell and = POST. The UEFI Shell library (=93Torito C Library=94) has been production-ready = for more than one year. The POST version of the library (=93CdeLib=94) is not yet fully tested. I will be demonstrating my verification procedure in the upcoming weeks on= EDK2 STAGING https://github.com/tianocore/edk2-staging/tree/CdePkg Currently there are 3 examples implemented: 1. argvc: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeVali= dationPkg/HOSTED_ENV/argcv/main.c#L57 argc/argv handling according to https://msdn.microsoft.com/en-us/library/a= 1y7w461.aspx 1. systeminterfacePEI: https://github.com/tianocore/edk2-staging/blob/C= dePkg/CdeValidationPkg/SYSTEM_IF/systeminterfacePEI/main.c#L57 demonstration, how PeiServices and FileHandle are passed into main() 1. systeminterfaceDXE: https://github.com/tianocore/edk2-staging/blob/C= dePkg/CdeValidationPkg/SYSTEM_IF/systeminterfaceDXE/main.c#L57 demonstration, how SystemTable and ImageHandle are passed into main() Upcoming next demonstration will be the clock() function end of this week The idea is to bring the ANSI C Library interface into POST drivers. This will: 1. ease porting tasks 2. allow cross development 3. allow developers to focus on their aims, because they aren=92t force= d to keep in mind a lot of additional info (e.g. RShiftU64) 4. provide all intrisics to allow the compiler to be a =93C compiler=94 (e.g. char buffer[256] =3D { 1 };) What is CdePkg and Torito C Library? * CdePkg and Torito C Library are a one man show / after work party, t= hat is owned and written solely by myself * CdePkg is a reference implementation only for Microsoft C compiler * CdePkg is a feasibility study * CdePkg is the successor of Torito C, based on the same source code * CdePkg C Development Environment is similar to MdePkg Module Develo= pment Environment but guarantees that the C compiler is always fully usable (all intrinsics= available) and the C90/C95 standard library is always available What are the design goals? * to rewrite the whole thing from scratch, without using any public so= urce code from GNU, BSD, Watcom * completeness: full blown C90 + C95 support, as lowest common denomin= ator * tailored for UEFI: small code size, for UEFI-POST-driver uses a C-Li= brary-Driver, that contains core/worker functions for realloc() =3D=3D mal= loc() and free(), entire printf()-family, entire scanf()-family. UEFI-POST-driver just uses small wrapper functions to run the C-Library-Dr= iver code. * stable, exact, chipset independent TSC based clock() with CLOCKS_PER= _SEC =3D=3D 1000 * complete set of the Microsoft C-compiler intrinsic functions * ROM-able! Runs with stack but w/o any static storage duration in .da= ta segment, e.g. for rand(), strtok(), tmpfile() This is required for early PEI before memory sizing, when PEI-images run d= irectly out of flash * Microsoft (bug) compatible (as far as possible) * use original Microsoft header files for UEFI Shell Apps created i= n VS2019 * allow expensive debugging tasks of ANSI C .EFI applications in Vi= sual Studio in its Windows NT counter part * to save my lifetime writing a documentation https://github.com/ti= anocore/edk2-staging/tree/CdePkg/implemented.md#validation-status * all the above in one single C-Library CdeLib.lib CdePkg shall be adjusted to other compilers/tool chains too, once it is fe= ature-complete and accepted by the UEFI community. As long as it is for Microsoft VS2019 only. CdePkg README.md is here: = https://github.com/tianocore/edk2-staging/tree/CdePkg#cdepkg CdePkg HOWTO is here: https://github.com/tianocore/edk2-staging/blob/CdePk= g/README.md#howto CdeValidationPkg README.md is here: https://github.com/tianocore/edk2-stag= ing/blob/CdePkg/CdeValidationPkg/README.md CdeValidationPkg HOWTO is here: https://github.com/tianocore/edk2-staging/= blob/CdePkg/CdeValidationPkg/README.md HOWTO: 1. clone the edk2-staging repository 2. checkout CdePkg 3. run LAUNCH.BAT 4. run build -p EmulatorPkg\EmulatorPkg.dsc -t VS2015x86 -a IA32 5. run DBGEMU.BAT to start emulation (EmulatorPkg) 6. run build -a IA32 -a X64 -n 5 -t VS2015x86 -b DEBUG -p Vlv2TbltDevic= ePkg\PlatformPkgX64.dsc 7. update MinnowBoard with Build/Vlv2TbltDevicePkgX64\DEBUG_VS2015x86\F= V\VLV.fd Best regards, Kilian Kegel --_000_VI1PR0502MB3968F748351141E461976107EB740VI1PR0502MB3968_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hi UEFI community,=

 

I=92d like to inform yo= u about an update in the CdePkg branch of  edk2-staging.

https://github.com/tianoc= ore/edk2-staging/tree/CdePkg#cdepkg

 

The goal of the CdeP= kg is to provide an ANSI C Interface for UEFI POST drivers,

that enables BIOS engin= eers to (more) easily port standard C programs or libraries

(e.g. the openSSL libra= ry, already done) to POST drivers.

 

Furthermore the ANSI= C Interface is disseminated widely, also it=92s bugs and pitfalls are known very w= ell

by a broad range of IT professionals and may help t= o be better supportable by the open source initiative

compared to the proprietary interface that is avail= able today in Tianocore UEFI.=

 

Now the ANSI C function= s = difftime() mktime() time() asctime() ctime() gmtime() localtime() strftime(= ) are introduced for PEI and <= b>DXE.

 

Currently there are 4 examples implemented:

  1. = argvc: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeValidationPk= g/HOSTED_ENV/argcv/main.c#L57

argc/argv handling acco= rding to https://msdn.microsoft.com/en-us/library/a1y7w461.aspx

  1. = systeminterfacePEI: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeValidationPkg/SYS= TEM_IF/systeminterfacePEI/main.c#L57

demonstration, how PeiServices and FileHandle are passed into main()

  1. = systeminterfaceDXE: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeValidationPkg/SYS= TEM_IF/systeminterfaceDXE/main.c#L57

demonstration, how SystemTable= and ImageHandle are passed into main()

 

ANSI C LIBRA= RY functions:

  1. time.h clock(): https://github.com/tianocore/edk2-st= aging/blob/CdePkg/CdeValidationPkg/TIME_H/clock/main.c#L1

for PEI and DXE phase. It provides TSC based= , millisecond precise, exact and chipset independent clock() = function.

NOTE: in em= ulation mode the TSC nominal frequency is supposed to be 1GHz

https://docs.microsof= t.com/en-us/cpp/c-runtime-library/reference/clock?view=3Dvs-2019

  1. NEW: time.h  difftime():

https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/diffti= me-difftime32-difftime64?view=3Dvs-2019

NEW: time.h&nbs= p; mktime():

= https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/mktime-mkt= ime32-mktime64?view=3Dvs-2019

NEW: time.h t= ime():

https:= //docs.microsoft.com/en-us/cpp/c-runtime-library/reference/time-time32-time= 64?view=3Dvs-2019

NEW: time.h a= sctime():

https://do= cs.microsoft.com/en-us/cpp/c-runtime-library/reference/asctime-wasctime?vie= w=3Dvs-2019

NEW: time.h&nbs= p; ctime():

https://docs.microsoft.com/en-us/cpp/c-runtime-library/= reference/ctime-ctime32-ctime64-wctime-wctime32-wctime64?view=3Dvs-2019=

NEW: time.h&nbs= p; gmtime():

ht= tps://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/gmtime-gmtim= e32-gmtime64?view=3Dvs-2019

NEW: time.h&nbs= p; localtime():

https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/loc= altime-localtime32-localtime64?view=3Dvs-2019

NEW: time.h&nbs= p; strftime():

https://docs.microsoft.com/en-us/cpp/c-runtime-library/referen= ce/strftime-wcsftime-strftime-l-wcsftime-l?view=3Dvs-2019

NOTE: All T= IME.H functions support UTC only.

All functions ar= e tested in one single driver PEI/DXE: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeValidationPkg/TIM= E_H/timehfunctions/main.c#L52

 

 

Best Regards,

Kilian

 

From: Kilian Kegel
Sent: Wednesday, October 23, 2019 10:03 PM
To: devel@edk2.groups.io
Cc:
Kinney, Michael D= ; Richardson, Brian
Subject: [edk2-devel] [staging/branch]: CdePkg - C Development Envi= ronment Package

 

Hi UEFI community,=

 

I=92d like to introduce= the CdePkg to edk2-staging.

 

Some time ago I decide= d to write my own ANSI C Library for UEFI Shell and POST.=

 

The UEFI Shell library= (=93Torito C Library=94) has been production-ready for more than one year.=

The POST version of th= e library (=93CdeLib=94) is not yet fully tested.

 

I will be demonstratin= g my verification procedure in the upcoming weeks on EDK2 STAGING  h= ttps://github.com/tianocore/edk2-staging/tree/CdePkg

 

Currently there are 3 examples implemented:

  1. = argvc: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeValidationPk= g/HOSTED_ENV/argcv/main.c#L57

argc/argv handling acco= rding to https://msdn.microsoft.com/en-us/library/a1y7w461.aspx

  1. = systeminterfacePEI: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeValidationPkg/SYS= TEM_IF/systeminterfacePEI/main.c#L57

demonstration, how PeiServices and FileHandle are passed into main()

  1. = systeminterfaceDXE: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeValidationPkg/SYS= TEM_IF/systeminterfaceDXE/main.c#L57

demonstration, how SystemTable= and ImageHandle are passed into main()

 

Upcoming next demonstr= ation will be the clock() function end of this week

 

The idea is to bring t= he ANSI C Library interface into POST drivers.

This will:<= /span>

  1. eas= e porting tasks
  2. allow cross development
  3. allow develo= pers to focus on their aims, because they aren=92t forced to keep in mind a lo= t of additional info (e.g. RShiftU64)
  4. provide all intrisics to allow the compiler to be a =93C compiler=94

(e.g. char b= uffer[256] =3D { 1 };)

 

What is CdePkg and Tor= ito C Library?

  • Cde= Pkg and Torito C Library are a one man show / after work party, that is owned and written solely b= y myself
  • CdePkg is a reference implementation only for Microsoft= C compiler
  • CdePkg is a feasibility study
  • CdePkg is t= he successor of Torito C, based on the same source code
  • CdePkg C= Development Environment is similar to  MdePkg Module Development Envi= ronment

but guarantees  that the C compiler is always fully usable (all i= ntrinsics available) and the C90/C95 standard library is always available

 

What are the design go= als?

  • to rewrite the whole thing from scratch, without using any public source c= ode from GNU, BSD, Watcom
  • completeness: full blown C90 + C95 support, as lowest common denominat= or
  • tailored for UEFI: small code size, for UEFI-POST-driver uses a C-Library-= Driver, that contains core/worker functions for realloc() =3D=3D  mal= loc() and free()<= /b>,

entire printf()-family, entire scanf()-family.

UEFI-POST-driver just uses small wrapper functions to run the C-Librar= y-Driver code.

  • sta= ble, exact, chipset independent TSC based clock()= with CLOCKS_PER_SEC =3D=3D 1000
  • complete set of the M= icrosoft C-compiler intrinsic functions
  • ROM-able! Runs with stack but w/o any static sto= rage duration in .data segment, e.g. for r= and(), strtok(), tmpfile()

This is require= d for early PEI before memory sizing, when PEI-images run directly out of f= lash

  • Microsoft (bug) compatible (as far as possible)
    1. use original Microsoft header files for UEFI Shell Apps created in VS2019 =
    2. allow expensive debugging tasks of ANSI C .EFI applications in Visual Stud= io in its Windows NT counter part
    3. to save my lifetime writing a documentation https://github.com/tianocore/edk2-staging/tree/CdePkg/implemented.md#valid= ation-status
  • all the above in one single C-Library CdeLib.lib

 

CdePkg shall be adjusted to other compilers/tool chains = too, once it is feature-complete and accepted by the UEFI community.

As long as it is f= or Microsoft VS2019 only.

 

CdePkg README.md is here:   https://github.com/tianoco= re/edk2-staging/tree/CdePkg#cdepkg

CdePkg HOWTO is here: https://github.com/tianocore/edk2-staging/blob/CdePkg/README.md#how= to

CdeValidationPkg README.md is here: https://github.com/tianocore/edk= 2-staging/blob/CdePkg/CdeValidationPkg/README.md

CdeValidationPkg HOWTO is here: https://github.com/tianocore/edk2-staging/blob/CdePkg/CdeValidationPkg/REA= DME.md

 

HOWTO:

  1. clo= ne the edk2-staging repository
  2. checkout CdePkg
  3. run LAUNCH.BAT
  4. run build -p EmulatorPkg\Emul= atorPkg.dsc -t VS2015x86 -a IA32=
  5. run DBGEMU.BAT to start emulation (EmulatorPkg)
  6. <= li class=3D"xmsonormal" style=3D"mso-list:l1 level1 lfo5">run build -a IA32 -a X64 -n 5 -t VS2015x86 -b DEB= UG -p Vlv2TbltDevicePkg\PlatformPkgX64.dsc=
  7. update MinnowBoard with= Build/Vlv2TbltDevicePkgX64\DEBUG_VS2015x86\FV\VLV.fd

&nb= sp;

Best regard= s,

Kilian Kege= l

 

 

 

 

--_000_VI1PR0502MB3968F748351141E461976107EB740VI1PR0502MB3968_-- --_004_VI1PR0502MB3968F748351141E461976107EB740VI1PR0502MB3968_ Content-Type: image/png; name="36A4E3016B36494BBE07634081E4DE48.png" Content-Description: 36A4E3016B36494BBE07634081E4DE48.png Content-Disposition: inline; filename="36A4E3016B36494BBE07634081E4DE48.png"; size=132; creation-date="Mon, 11 Nov 2019 19:02:24 GMT"; modification-date="Mon, 11 Nov 2019 19:02:24 GMT" Content-ID: Content-Transfer-Encoding: base64 iVBORw0KGgoAAAANSUhEUgAAAsQAAAABCAYAAADZ77itAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZSURBVEhL7cEBAQAAAIIg/69uSEAAAPCrBgsR AAHZdg1RAAAAAElFTkSuQmCC --_004_VI1PR0502MB3968F748351141E461976107EB740VI1PR0502MB3968_--