From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4003:c06::231; helo=mail-oi0-x231.google.com; envelope-from=sigmaepsilon92@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B411B2034D8C7 for ; Tue, 27 Feb 2018 23:27:52 -0800 (PST) Received: by mail-oi0-x231.google.com with SMTP id j81so1096151oia.0 for ; Tue, 27 Feb 2018 23:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Q0HO93g5TclOKQmk6yz2PzGQVKnnC4YHwW92AxtIX34=; b=r30ZaLmYv+p8voVoFCxAcbK+jY/ZgiuSUZI8E1640k4RyKNcwD4RyLa7SPW6vorFIz R8Zz03EtwlP11ZKmoR9FCQj0t2LG+e7rFTSFIEd9ZMnsA7KqcEn2x18ZqucVsC1VpK/a kzAxV2+oUX8Gb830UDBLQWocd6lJDKpE/il4OMCtpMf4tCbimU5wm+ln1+n2OSi5pUbK sfVTebYj0su5BzDDl2ZHtE2W1izFbCrwSgp2xO9WCaHrouqGjyp96IosV7ZsobPB6J3V 5DjmNUxspvoIR4PJ2D6zgAyQ/QWGZiLaRWNufwrtCPilTiSNKhC6JBkJv46JU+RLIKst RG3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Q0HO93g5TclOKQmk6yz2PzGQVKnnC4YHwW92AxtIX34=; b=soaA+2i1/MDUe2wzcEzYoxTyLAiuRdShRHWCcctle7PMaLDdDAdg7dqJZN6f1/KKfQ YQPFN+vaSPSQmobCLvn5+PXbwbNsLLg9N9CnqJVG2D7x9cCApx6vw5vKg1pIxqceuFVr UfDWpqx7ElgoXQfN2FP02tGM8pgGdnbEEKi8cZLNulq1e3pYFiqs+1vKhehh0n84zlO+ LBDcXGgub4oySI7A7DxJE46q7rbZSJZqmYZb2RrhruBvMRZDD3jQnexGnzhYNYrTVvox j/gdRGsxgmaxWIVf+Ieak9bJFtnFs4R4v2MbrPuvSS79T2LLdt3NZVTmEBG/kDs/673G BLSg== X-Gm-Message-State: APf1xPAQDWkrAXFOmtZL/y3YwA69i9Q0125AI2JKEnmd6hTYddN891/t FHiyOIVdng1fNP6bJ1O/QmtQ0cpJ5cdmiU+aX2s= X-Google-Smtp-Source: AG47ELvb96pvdo89g+etkW3sbb16jJgxwJIYPCDQJBXzMrYKVXSw7o9RGraasxXmJA0JxhAlKbv3RQ9bJJ90ZwE6v00= X-Received: by 10.202.82.193 with SMTP id g184mr3208440oib.224.1519803238813; Tue, 27 Feb 2018 23:33:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.31.116 with HTTP; Tue, 27 Feb 2018 23:33:58 -0800 (PST) In-Reply-To: <26da6afd-102b-0006-c6b7-a10d8e13f96e@Intel.com> References: <26da6afd-102b-0006-c6b7-a10d8e13f96e@Intel.com> From: Michael Zimmermann Date: Wed, 28 Feb 2018 08:33:58 +0100 Message-ID: To: "Ni, Ruiyu" Cc: edk2-devel-01 , Leif Lindholm , Ard Biesheuvel X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:27:53 -0000 Content-Type: text/plain; charset="UTF-8" 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 >