From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::236; helo=mail-wm0-x236.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (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 D6131203B992C for ; Tue, 22 May 2018 07:09:02 -0700 (PDT) Received: by mail-wm0-x236.google.com with SMTP id j5-v6so85562wme.5 for ; Tue, 22 May 2018 07:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Z3jDPMon68EBAQk3Xxxlb6MZD02G7CN6D6MQ9V4ylFg=; b=hMasWY9i1y7hHO08+Ewxqhk2JEgLbBWO+qO6gSrAh0GSpWpG3j3aOxsa1AaDocTBqY O2xE9lTNMzOjtrHufF+IqK8Q+CG8FecMs+rNgC3iUH626a46Ic8u1uILUj/693z5fSw0 EMn9xJgOq3X6zH/dJPcuhAiT8MmIGJgZFPTas= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Z3jDPMon68EBAQk3Xxxlb6MZD02G7CN6D6MQ9V4ylFg=; b=cp3869NB2nRtzRYicNA7QLreRVbLfGYOWeP9gBVfnaH2NWbEEimrzY5PPP/TB7k9XD zhH3EHdHNm9xbguCYwXMmlG/N/RKpT+St7WsS2nBb05wiRqkCjfYb2vr6cgQU+y3cO31 TW8GHnf7KwYmJVW4ZwB5WHYcYbeO7+tP6xSNcZaN9y6jAAW5fX20m3JHlP1limJXFElH 0cSxZpOI2r89Ap4vOmk7H+QVtedigVxCC2dg7S2nqPlyArgwFpiXHK+gpzouaFvChosX 46YSJu9FEZqswEdTkujEog9AFOdSVeDKPi7ZMNvimX4xFSxEbdORVApY/fxgP1oaTZYz u/pQ== X-Gm-Message-State: ALKqPwft0U7Z364BWqn+EeeQj2ufKFIVtWiYnShcS7DTfuMsdPiuTPl6 1qeFN+7j3yw/tNLY6b9gMjYQMGAWGCo= X-Google-Smtp-Source: AB8JxZr0sIsyAOVHwgfZ69hKWbL3uEb4MhkS9shmhQxKA7nkunWPl9s4cE30bhfohVaPz60AKi9gYg== X-Received: by 2002:a1c:da13:: with SMTP id r19-v6mr1492007wmg.2.1526998140375; Tue, 22 May 2018 07:09:00 -0700 (PDT) Received: from localhost.localdomain ([2a01:e35:3995:5470:200:1aff:fe1b:b328]) by smtp.gmail.com with ESMTPSA id r6-v6sm17755545wrg.73.2018.05.22.07.08.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 07:08:59 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: Ard Biesheuvel , Laszlo Ersek , Leif Lindholm , Michael D Kinney , Liming Gao , Star Zeng , Eric Dong , Dandan Bi Date: Tue, 22 May 2018 16:08:46 +0200 Message-Id: <20180522140850.30369-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180522140850.30369-1-ard.biesheuvel@linaro.org> References: <20180522140850.30369-1-ard.biesheuvel@linaro.org> Subject: [PATCH 2/6] ArmVirtPkg/PlatformBootManagerLib: add missing report status code call X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2018 14:09:03 -0000 Consumers of status code reports may rely on a status code to be reported when the ReadyToBoot event is signalled. For instance, FirmwarePerformanceDxe will fail to install the FPDT ACPI table in this case. So add the missing call. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf | 1 + ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf index d6c1ef95dc44..0cbc82f5d27d 100644 --- a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf +++ b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf @@ -53,6 +53,7 @@ [LibraryClasses] PrintLib QemuBootOrderLib QemuFwCfgLib + ReportStatusCodeLib UefiBootManagerLib UefiBootServicesTableLib UefiLib diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c b/ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c index ac47d21e71c8..7b59f57eb19f 100644 --- a/ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c +++ b/ArmVirtPkg/Library/PlatformBootManagerLib/QemuKernel.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -1072,6 +1073,9 @@ TryRunningQemuKernel ( // EfiSignalEventReadyToBoot(); + REPORT_STATUS_CODE (EFI_PROGRESS_CODE, + (EFI_SOFTWARE_DXE_BS_DRIVER | EFI_SW_DXE_BS_PC_READY_TO_BOOT_EVENT)); + // // Start the image. // -- 2.17.0