From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=17.82.254.63; helo=mail-in1.asia.apple.com; envelope-from=afish@apple.com; receiver=edk2-devel@lists.01.org Received: from mail-in1.asia.apple.com (mail-out.asia.apple.com [17.82.254.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8E73B2034D8E8 for ; Tue, 27 Feb 2018 23:36:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1519803754; x=2383717354; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=BDFr880srFLqWq1Zx2femUcPNtEcHQtgsO9mGVuTVvs=; b=gBiD93TMj+/oBUjq6fPdYv51i6ujQftRFTMJfWh6j4YZbQDMci4BTjO5gDPJhKA6 fwXCp5+iDkpCu2DHIEP9Tp+3b0JgUieZ4kuS6GG5aJJzmIbEG+SZxFKZG78ttaGl HsRAJM5spWgsI43aLHixAqUffEUgrj+1OM70c/BnY+AWMKEKWhrPhwuA1fvOAu0E V86ffdcqKqFvD9fPK7jGIVf5Hu9ZF2Q0fwXu6bnlhMZ7LVTdxO+NaG8QPLhtd1/Q K7n/wwaJbUtuUawy7beyynf0tgz9xj7zQAS/VfvGLqTyrVce/UXS40qteZIiPYrN kRtNd+rcXB+bvK2wDiSeSQ==; Received: from relay2.asia.apple.com ( [17.82.200.16]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in1.asia.apple.com (Apple Secure Mail Relay) with SMTP id 8D.15.06337.A6D569A5; Wed, 28 Feb 2018 15:42:34 +0800 (MYT) X-AuditID: 1152fe11-561739e0000018c1-c2-5a965d6a1179 Received: from sg3-mmpp-sz01.asia.apple.com ( [17.84.80.93]) by relay2.asia.apple.com (Apple Singapore relay) with SMTP id DF.78.31851.A6D569A5; Wed, 28 Feb 2018 15:42:34 +0800 (MYT) MIME-version: 1.0 Received: from [17.235.144.116] (unknown [17.235.144.116]) by sg3-mmpp-sz01.asia.apple.com (Oracle Communications Messaging Server 8.0.2.2.20180130 64bit (built Jan 30 2018)) with ESMTPSA id <0P4U00AUQO2VLD60@sg3-mmpp-sz01.asia.apple.com>; Wed, 28 Feb 2018 15:42:34 +0800 (+08) Sender: afish@apple.com From: Andrew Fish X-Mailer: iPhone Mail (15D100) In-reply-to: Date: Tue, 27 Feb 2018 23:42:31 -0800 Cc: "Ni, Ruiyu" , edk2-devel-01 , Leif Lindholm , Ard Biesheuvel Message-id: References: <26da6afd-102b-0006-c6b7-a10d8e13f96e@Intel.com> To: Michael Zimmermann X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCLMWRmVeSWpSXmKPExsUiGHRCQDcrdlqUwfNf1hb/P+xmtNhz6Ciz xafde1gsXvasZreYO/UpqwOrx85Zd9k9Fu95yeRx59oeNo/u2f9YAliiuGxSUnMyy1KL9O0S uDIWvbnFWvCOp+L7t6PMDYynuboYOTkkBEwkDn/7ygZiCwksYZLYcsgcJn7qwTvGLkYuoPgO RoltK68xgSR4BQQlfky+x9LFyMHBLCAvcfC8LEiYWUBL4vujVhaI+rlMEjMPLWAESQgLiEu8 O7OJGaReWEBdYlFPOkiYTUBZYsX8D+wQu+QkPsy7xQJicwoESyzY+B7sHhYBVYlXb9cyg8xk FljOKNG//hQLxA02EpM/7WCFWHaGUeJU7xOw40QEDCWeNj9mAklICOxgk5iy5hDzBEbhWUgO n4Vw+Cwkhy9gZF7FKJ6bmJmjm5lnqJdYnJmol1hQkJOql5yfu4kRHBf/BHcwTl1oeIhR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7jw1cr/yixFGckGmoxFxUnAgDfDdeMYAIAAA== Subject: Re: 'fastboot boot' TPL X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2018 07:36:31 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Violating the spec is undefined behavior. If it works that is bad luck, or good luck depending on your point of view. > On Feb 27, 2018, at 11:33 PM, Michael Zimmermann wrote: > > Are you sure? > > If you look at this file: > https://github.com/tianocore/edk2/blob/master/EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.c > > The DataReady Event is a TPL_CALLBACK event. > From there the call chain goes as follows: > AcceptCmd -> HandleBoot -> BootAndroidBootImg -> StartEfiApplication -> > "gBS->StartImage" > > Thanks > Michael > >> On Wed, Feb 28, 2018 at 8:29 AM, Ni, Ruiyu wrote: >> >>> On 2/28/2018 2:06 PM, Michael Zimmermann wrote: >>> >>> From looking at the code it seems to me that StartImage is called from >>> TPL_CALLBACK. >>> According to the Spec StartImage can only be called from >> >>> If the current code actually works it means that there are at least 3 >>> problems that should be addressed: >>> - call StartImage from TPL_APPLICATION >>> - ASSERT the tpl in LoadImage and StartImage >>> - ASSERT the tpl in ExitBootServices >>> >>> Thanks >>> Michael >>> _______________________________________________ >>> edk2-devel mailing list >>> edk2-devel@lists.01.org >>> https://lists.01.org/mailman/listinfo/edk2-devel >>> >>> NO, LoadImage and StartImage are called at TPL_APPLICATION. >> >> -- >> Thanks, >> Ray >> > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel