Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kpJnH-0000a0-4q for mharc-grub-devel@gnu.org; Tue, 15 Dec 2020 18:31:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpJnF-0000WY-Ew for grub-devel@gnu.org; Tue, 15 Dec 2020 18:31:45 -0500 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]:39434) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpJnD-00013j-O7 for grub-devel@gnu.org; Tue, 15 Dec 2020 18:31:45 -0500 Received: by mail-qt1-x830.google.com with SMTP id a6so15997394qtw.6 for ; Tue, 15 Dec 2020 15:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nQegtQuHJn2ud/UCk6q9gyXqnNW0A3yOWyT1YI60u/Y=; b=a5YEFXVkwQ7OlGFqwPnDF7gwCmxz5XFFyWK94ZZ3iQsui5uluA82lV64o1QRg7i+6a l3yepg7pwh6iKG1lh1UZ7TgWc+K7DvfvnN6EIVf79kEm681vKRNx48yINFJ2yBS4MwNI e7USUFId2Q2/G8kJqB0lD5sZ8/+GA70y6qo1BOUg276blkcoIRP6smfHT3Opfmw4t43S 0x5vDPgBGw0QYa0p2gJORBpz1uHoN4jtAA0/XOTC1SE9k8dncdoqeP4ZXUYmI9R2+/SA I4/FJwC1YZEjBqXKaDxl9EBfvI8LsgrQTk5f9HXOe9zLpEZMkFAywvGqeUFM6OO2qsDL dmRw== 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:mime-version:content-transfer-encoding; bh=nQegtQuHJn2ud/UCk6q9gyXqnNW0A3yOWyT1YI60u/Y=; b=rX0XkSMBNB46d2OeafpzBlB48yDNx2mjRL0qbs6OHmKDU8eDFJJ8IgMVcPWJLzCgFR CoTeixabtSyB/Bndg4YSfqkQfkrjw9YDYUmaIqIs8vkaBTbgzUwzkIovoY4tBpbuNPxP KE8AygdmAgKBVHSLxX2scsGdTPCDzPl8H0nSNCRBVctKfRe4PDqkC6v7WfDMohwjTVz6 IHWKw+7OpwaZdPZxqwOMDrFULcvT1OXZzPCErg1CqLF4ODukkuKKiNrBxQqUyRnr2OUY A80vzD4iuUDW6SONWLf+ZhpGurrymwXPmqWwHhxXFHj5xivj5bBckfI4N4lAag9nZ8/Z SNFw== X-Gm-Message-State: AOAM530Fm3qy5ss06wM2cSFJj/Rg1E6vy9RJd0DLxN1kuI8h0GvkZCVF lyTgoqg3UmpsPMSQ4Is7TejwPGuXBMxn3Q== X-Google-Smtp-Source: ABdhPJxCC0T2yb9Tt95p0INL4doD87i21y/4IYWAbdxFAYcGNKIicglVAeGT4menEhU79bLVjgeljw== X-Received: by 2002:a05:622a:301:: with SMTP id q1mr38498504qtw.237.1608075102663; Tue, 15 Dec 2020 15:31:42 -0800 (PST) Received: from localhost.localdomain ([136.49.211.192]) by smtp.gmail.com with ESMTPSA id x49sm45583qtx.6.2020.12.15.15.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Dec 2020 15:31:42 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org Cc: Patrick Steinhardt , Daniel Kiper , Glenn Washburn Subject: [PATCH v9 4/6] mips: Enable __clzdi2() Date: Tue, 15 Dec 2020 17:31:09 -0600 Message-Id: <62d4a6c2e55e08870a188eb57c2fdd54f065b03b.1608074337.git.development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::830; envelope-from=development@efficientek.com; helo=mail-qt1-x830.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2020 23:31:45 -0000 This patch is similiar to commit 9dab2f51e (sparc: Enable __clzsi2() and __clzdi2()) but for MIPS target and __clzdi2 only, __clzsi2 was already enabled. Suggested-by: Daniel Kiper Signed-off-by: Glenn Washburn --- grub-core/kern/compiler-rt.c | 2 +- include/grub/compiler-rt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grub-core/kern/compiler-rt.c b/grub-core/kern/compiler-rt.c index a464200c6..2057c2e0c 100644 --- a/grub-core/kern/compiler-rt.c +++ b/grub-core/kern/compiler-rt.c @@ -448,7 +448,7 @@ __clzsi2 (grub_uint32_t val) } #endif -#if defined(__riscv) || defined(__sparc__) +#if defined(__mips__) || defined(__riscv) || defined(__sparc__) int __clzdi2 (grub_uint64_t val) { diff --git a/include/grub/compiler-rt.h b/include/grub/compiler-rt.h index 7591980b4..17828b322 100644 --- a/include/grub/compiler-rt.h +++ b/include/grub/compiler-rt.h @@ -115,7 +115,7 @@ int EXPORT_FUNC (__clzsi2) (grub_uint32_t val); #endif -#if defined(__riscv) || defined(__sparc__) +#if defined(__mips__) || defined(__riscv) || defined(__sparc__) int EXPORT_FUNC (__clzdi2) (grub_uint64_t val); #endif -- 2.27.0