From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from COL004-OMC4S4.hotmail.com (col004-omc4s4.hotmail.com [65.55.34.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 19A4F1A1E24 for ; Sat, 22 Oct 2016 10:03:57 -0700 (PDT) Received: from EUR03-DB5-obe.outbound.protection.outlook.com ([65.55.34.201]) by COL004-OMC4S4.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Sat, 22 Oct 2016 10:03:56 -0700 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=2pI+dYE0WvUqm1Q0gpdbNlU+0L1sDs3LK/trkz5sIpg=; b=HsiLCnP1hxUDZRABYxtpAEB5GoWjnHCtxgaD8WdSjRMz/gCT4TCyZSyY+zJjQ8FmUkX8h4BizRQZK3yZ0iU0hwjqnrSr3Pk/ijBPpYdSh6MZEzCtEYmzKopNKD3aM0J70iweRUiI6LbjLQ0i7C93U/LSKa7mwwEE2/BEtafCsVqphKMPGSQSG7PC3MjWB9152G2HltaiYAfilC1hBiAxfTXZsLO4tvmppr7vTtI16Y2w2HLiat3ewBUOtkVlzMvIHTPnU7TR+PGQfq90QNva73hey3iheNNXaHD05EqH+c1ckYMfAN9U8iZr5ILWzdGpju0uitZ/53EKF6RMT8//ag== Received: from AM5EUR03FT012.eop-EUR03.prod.protection.outlook.com (10.152.16.55) by AM5EUR03HT036.eop-EUR03.prod.protection.outlook.com (10.152.17.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7; Sat, 22 Oct 2016 17:03:41 +0000 Received: from AM5PR0601MB2579.eurprd06.prod.outlook.com (10.152.16.52) by AM5EUR03FT012.mail.protection.outlook.com (10.152.16.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.7 via Frontend Transport; Sat, 22 Oct 2016 17:03:41 +0000 Received: from AM5PR0601MB2579.eurprd06.prod.outlook.com ([10.168.154.13]) by AM5PR0601MB2579.eurprd06.prod.outlook.com ([10.168.154.13]) with mapi id 15.01.0669.018; Sat, 22 Oct 2016 17:03:41 +0000 From: Marvin H?user To: "edk2-devel@lists.01.org" CC: Rafael Machado Thread-Topic: [edk2] Sec and Reset vector Thread-Index: AQHSLIFW1oqYdZcuEU6w0hgIdKn9NaC0sdIg Date: Sat, 22 Oct 2016 17:03:41 +0000 Message-ID: References: In-Reply-To: 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-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [n/ds7NGJrOOtyBUkwggk0fs3FO8GktkEIuj0MHBsdUSsEfEKi3rc36LDkoOVBJQR] x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; AM5EUR03HT036; 6:Hqf59yAXZAWqFFYeEorNLDsuYPkGu2f4ohZm49EJIZ5b/Ym2JxSBFsy5UDrc8Qhr/7mMwE5t8VjMDbiMrvsFHOY90L2zRPlc/PPnFbNKQpfiT815LtgS4odj7/8n7jwQMQGNeT2cAwBV/MTRvwG/49q74P1JWEhjqtqztvcBdZnKuqhhoMCgchTDUriXYDDaTdGu4RqF2g8NflODau3APXCH3hkHSe3mqXBlZrs0fLgDzyHQprJGECIp4a+qO7+nfylSTl3dhsiYWWWBKmnA06BFs7/vzb4qCX037+GBwOArOmhoMuyRtvywdgbo+t6C; 5:QCtlrH+eunGzc7QDoOuOhMJPJWD6g5XzEtwB99hEY2XZNJnl2yWWUs41QKEY5rhboWgZrOokq7IejYgJh78plMLLpg35KZeGl4fEWi0jsEsUDwX4fWIV3II+1BHP0SjMZvU4RI8XshifA5r3LVgR9A==; 24:vkxJlSfiet25vN+TxjFa2moviykWTO2wgzOv5OAiD6RyHf6dkwuslkpmxoIwV7duZdNars4Mkz03LNBQ14SoQI4c7d1bHyVebZIE4bO0MRc=; 7:5yxkxMWQIiPlVkaA7RL+3L2BdCcPXyYCYHtLppzkbW4+1v/cwBpShIIjfiRXnk39Y9LXOVcogWb1HjEy1XPwicfPcs/zNTsB5sSpkGqcKwUZ/XTxX44ZLPa8mLssW3Fh6mWttcxmi9HUOvHjPiDBU3fmCaRIT7Hoe9b2aGZoSGWWhcK44+fQYkYTr/blV2+cMGCKFfhuGQFVUh7kn6gNng6UPxMQSHzeDRI+B3BJAymsDmBnQ/qNIKkIaRZTEGy0xaCBL/pjgROWXVTdGsteqEpNYqsPB360HBCxo+I+Got3CmReB1IXgQ5ti608+qACjp3QDhAlG/j/ufAxRGSSB9Mh6FnWc7iGRzO8Mug2QhY= x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5EUR03HT036; H:AM5PR0601MB2579.eurprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: 42a45925-c175-4de0-e61e-08d3fa9d5fef x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(1603103081)(1601125047); SRVR:AM5EUR03HT036; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046); SRVR:AM5EUR03HT036; BCL:0; PCL:0; RULEID:; SRVR:AM5EUR03HT036; x-forefront-prvs: 01039C93E4 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2016 17:03:41.3667 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5EUR03HT036 X-OriginalArrivalTime: 22 Oct 2016 17:03:56.0916 (UTC) FILETIME=[469DEB40:01D22C86] Subject: Re: Sec and Reset vector X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Oct 2016 17:03:57 -0000 Content-Language: de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hey Rafael, There actually is some generic SEC code in UefiCpuPkg you might want to tak= e a look at. It's generic because it does not have "Intel NDA" code, such a= s CAR (Cache-As-RAM) etc. The Reset Vector may or may not be part of SecCore. It's either embedded wi= thin the SecCore module, or a separate file in the FFS. You can check the s= tart/end address of the modules (e.g. with UEFITool) and find the Reset Vec= tor file that way. PS.: Seems like inline images are not supported by the mailing list (or is = it my error?). Either way, I do not see the image in my mail client (Outloo= k 2016). Regards, Marvin. > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Rafael Machado > Sent: Saturday, October 22, 2016 6:28 PM > To: edk2-devel@lists.01.org > Subject: [edk2] Sec and Reset vector >=20 > Hi eveyrone >=20 > I'm doing some studies on edk2 and coreboot, but I'm having some question= s > that I believe you can help. >=20 > On the journey to try to understand things since the beginning, so they m= ake > sense in future, I'm trying to understand how does the Initial phases of = UEFI > / PI firmware work. To do that I got a bios image and start to reverse it= to > check the modules and everything present at that bios. Now I understand, = at > least the basics, about DXE and PEI phase. >=20 > The main question that I have now is about the SEC phase. > To try to understand the SEC phase I tried to reverse this firmware so I = could > check the reset vector's first jump or something like that. > The surprise I have is that I was not able to find this code. >=20 > To be sure I was reversing on the correct way I generated a coreboot imag= e. > On the image below we can see the initial code of a firmware generated > using coreboot >=20 > [image: pasted1] >=20 > But at the UEFI firmware I'm studying I'm not able to find anything simil= ar to > that. > My guess before starting this was that at least the SEC initial code shou= ld be > similar to the legacy way of doing things, a jmp at 0xfff:fff0 and after = that the > magic should get started with all uefi phases. >=20 > Could someone please give me some light on that? >=20 >=20 > Thanks and Regards > Rafael R. Machado > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel