From patchwork Wed Jun 27 10:16:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 935384 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="mQs3csvy"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 41FzKR2q0Hz9s0w for ; Wed, 27 Jun 2018 20:14:19 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 7066DC21E0D; Wed, 27 Jun 2018 10:12:35 +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, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 D6563C21DFF; Wed, 27 Jun 2018 10:11:45 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 47E01C21DD9; Wed, 27 Jun 2018 10:11:40 +0000 (UTC) Received: from mail-pg0-f46.google.com (mail-pg0-f46.google.com [74.125.83.46]) by lists.denx.de (Postfix) with ESMTPS id 26FADC21C29 for ; Wed, 27 Jun 2018 10:11:36 +0000 (UTC) Received: by mail-pg0-f46.google.com with SMTP id n2-v6so714221pgq.6 for ; Wed, 27 Jun 2018 03:11:36 -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=84N+IZEPowBJSzfrFJACLHBHvyPUftW5uK1PWUPHq4A=; b=mQs3csvyQmyMB0+F4ZtNTBRInqwj3EnzV/kcZmhCuOodo43HZ/2BYjmHdfuqMD+z2r jyvmcdBFHVb4LJLNf8OlKpHsLAQRTB+2pqcenRFZtICmo2Nbyoj2WiFwmrhuFpmbrNYJ Kj+CNXJZO02QtFwA6uRvSD+H+CC6JkLO1Ic/P6qHMUY9uQwnmLs8V26GKtMm2kpX7Nxt iDejt47L3KZmKJZJNQZUa0FAxTolPNaPbZDKaAjixfNocgplzioBkrqoxNEu5Eb5IOTr 9IPtrbzrw96wbR10UniSgb2XKyNxkyomPqs+WFnsxczi9xqWai4G4+/zSNjJwHkkcEfu uGXA== 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=84N+IZEPowBJSzfrFJACLHBHvyPUftW5uK1PWUPHq4A=; b=gEhN1FjEYSmipb6fXuKRMnRRRbJ64+60EsfE1OBumQHmkeYWb25eixyumr4yk2rAhX bDfgW74aUrirgHFFNdYzHYXZgFn9YpJQyrpSP3uWSWNRxPgx5yfR9+pg//5TKlrAoric B84JRmyt36z+3ot/C8zK6SCEZAGGzZqTonYYx7Dd5oOt+J6YAZ/AX1ZV7/MbONE+uRQO lq0pDoUMj/YqB/FNX9SwzZ7Dzfzfjqv30iGnN7ejs/xu0SvWmQ9fipPHuIKenubQ1ZPG ljIXz3Oa6EJycCs/DbDdPtjMAMpdp9AShMLNeidn6Oos5/zWBGoUxb/Maql2PXxsnYx9 fZvQ== X-Gm-Message-State: APt69E0wAg7DP7HOGnk8sgkQfR+BnXR3YR5ImxCF6hJ33m3G5RzVT68K WLJkHJ0gJGgugeFyAEhGpqY= X-Google-Smtp-Source: AAOMgpdjwpaMTMhlyrm/i/7cki9dqqr4h1R/7h/9GL5vL8C2K2RPR6B6YO+h/FY7zzLsbhSBLRIbNg== X-Received: by 2002:a62:4715:: with SMTP id u21-v6mr5249472pfa.89.1530094294920; Wed, 27 Jun 2018 03:11:34 -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 o5-v6sm8114036pgd.24.2018.06.27.03.11.33 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Jun 2018 03:11:33 -0700 (PDT) From: Bin Meng To: Simon Glass , Alexander Graf , Heinrich Schuchardt , U-Boot Mailing List Date: Wed, 27 Jun 2018 03:16:11 -0700 Message-Id: <1530094573-7814-4-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1530094573-7814-1-git-send-email-bmeng.cn@gmail.com> References: <1530094573-7814-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH v2 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 --- 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..df7c82b 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 = ACPI_20_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 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");