From patchwork Thu Jun 28 03:38:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 935907 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="s0RbCovh"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41GQRV0Ls7z9s1B for ; Thu, 28 Jun 2018 13:36:05 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 70F26C21CB6; Thu, 28 Jun 2018 03:34:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 7FEE7C21E12; Thu, 28 Jun 2018 03:33:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 63BF9C21DFF; Thu, 28 Jun 2018 03:33:22 +0000 (UTC) Received: from mail-pl0-f52.google.com (mail-pl0-f52.google.com [209.85.160.52]) by lists.denx.de (Postfix) with ESMTPS id 21374C21DB5 for ; Thu, 28 Jun 2018 03:33:19 +0000 (UTC) Received: by mail-pl0-f52.google.com with SMTP id t6-v6so2044852plo.7 for ; Wed, 27 Jun 2018 20:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=/qsj7tfAGhAx06zAPgo8iTS7o4C5CVaFNnejN9+klrU=; b=s0RbCovh08xxalA19sbeC0JgJku4p9Gvf8xJfhBK5/vzD4Yv4SqeVxRJZOKSjKk85V /Frqxooy3J79h8nhOtj5kks7Tg3GOfPx+5jUVfx3xhPeXD53bx6xifTuw3jYmZFnHJk5 AK7nyTz7dmzvRb4LieWMEmEWnZLSglOZ7NHGxuRVbb4AHD5guvHjmyGo1yRRZmQBwbu1 M9UhFDffn4l21yFeAjKQ/wtfnOz043NYlC3WtN6aiDW/UCLwQofmy8KpXMHRJGqqIUCn NBFDkxb37N9B9CRebLYSNkLPkQ0TRQEuJteW5c4fabM1lXUQMqMTK4xWMjesAA6G9fIl tkxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=/qsj7tfAGhAx06zAPgo8iTS7o4C5CVaFNnejN9+klrU=; b=jG62wSJ2UJXuNASFqdj+0X53uSfacF9vAiOWzLT3I7gdqqKzix38ma8yXDHm51yGPB eJkDw+/XyuKM0tpnqwOpTSpuN6fAcGr+itJ+PFS3o7aBN60RFKPjS2X8ITou1WdF1J1S baTQkJYbFKBw8a82Z45Pt8e7aMAyylGXj4eqZs2NU7Aiy/E3nA4yxPDZjqS+RU8x2Xco 5KN36BHiw/fBLHTAcehw172EHVg3pI7L3xkwot/IxxM0RdCd+QYTXaWkMKOd059SjJl9 HIrKkLU/cKujPZKkvO1dhqcVR+ayWjW3BbFIl5F26Lm9uZitVQAqd9ioriSc7QsbWAGy Da1w== X-Gm-Message-State: APt69E0lJ7hzh4tMXbdu1wRr/tKc0x2/B909sRWDAJ9kP1crszZpKsVm oFUnJ/apG+BO66LTVc2vWhg= X-Google-Smtp-Source: AAOMgpfNBIShMCk/jACgDDF1riXkAe3L3ODffnqyvXLGzAGQhAIhCbWcERIKoCjXZOXsoQnwKsHddw== X-Received: by 2002:a17:902:6047:: with SMTP id a7-v6mr1189843plt.188.1530156797656; Wed, 27 Jun 2018 20:33:17 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com. [147.11.156.139]) by smtp.gmail.com with ESMTPSA id r65-v6sm9321231pfg.65.2018.06.27.20.33.16 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jun 2018 20:33:16 -0700 (PDT) From: Bin Meng To: Simon Glass , Alexander Graf , Heinrich Schuchardt , U-Boot Mailing List Date: Wed, 27 Jun 2018 20:38:04 -0700 Message-Id: <1530157086-4538-4-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1530157086-4538-1-git-send-email-bmeng.cn@gmail.com> References: <1530157086-4538-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v3 4/6] efi_loader: helloworld: Output ACPI configuration table X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Output ACPI configuration table if it exists. Signed-off-by: Bin Meng Reviewed-by: Heinrich Schuchardt --- Changes in v3: - Use UEFI spec 2.7 provided ACPI table name Changes in v2: - new patch "output ACPI configuration table" lib/efi_loader/helloworld.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/efi_loader/helloworld.c b/lib/efi_loader/helloworld.c index 046b46a..3b8de5b 100644 --- a/lib/efi_loader/helloworld.c +++ b/lib/efi_loader/helloworld.c @@ -14,6 +14,7 @@ static const efi_guid_t loaded_image_guid = LOADED_IMAGE_GUID; static const efi_guid_t fdt_guid = EFI_FDT_GUID; +static const efi_guid_t acpi_guid = EFI_ACPI_TABLE_GUID; static const efi_guid_t smbios_guid = SMBIOS_TABLE_GUID; static int hw_memcmp(const void *buf1, const void *buf2, size_t length) @@ -79,6 +80,9 @@ efi_status_t EFIAPI efi_main(efi_handle_t handle, if (!hw_memcmp(&systable->tables[i].guid, &fdt_guid, sizeof(efi_guid_t))) con_out->output_string(con_out, L"Have device tree\n"); + if (!hw_memcmp(&systable->tables[i].guid, &acpi_guid, + sizeof(efi_guid_t))) + con_out->output_string(con_out, L"Have ACPI 2.0 table\n"); if (!hw_memcmp(&systable->tables[i].guid, &smbios_guid, sizeof(efi_guid_t))) con_out->output_string(con_out, L"Have SMBIOS table\n");