From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kiZgW-00055z-Ly for mharc-grub-devel@gnu.org; Fri, 27 Nov 2020 04:04:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiZgV-00053b-HG for grub-devel@gnu.org; Fri, 27 Nov 2020 04:04:55 -0500 Received: from mail-lf1-x141.google.com ([2a00:1450:4864:20::141]:45536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kiZgT-0005Yg-MD for grub-devel@gnu.org; Fri, 27 Nov 2020 04:04:55 -0500 Received: by mail-lf1-x141.google.com with SMTP id z21so6002788lfe.12 for ; Fri, 27 Nov 2020 01:04:53 -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=dWcteTAQ7hXmrQ/Yt/89trOBQ4opQVJyI+I3aO5onBk=; b=Lk2JSIPCUyL7gUWwr5IxIcnyTZeHwmYvPkT0/+r3BcRs5nncXDSMMZuVnOhJegD+wQ Zqb+gA0mo/MFqRlNPQbkcN6foEfKU62oc9tYaqgSM2SvMY9/lrY/LTSHy9w6uGbEsP2n 1u7mdjyx/ExmoNn3mI9oxDApmSIx8xm0OH4VVR6vIFAuwFZCwKz+SRfECxZEt9yZLpFO UVnKCZeIv/SaQGKaaSpPg37Qa3ZsrAA5hTKoC4C6zkn4aPcLfBkwMFLHUclqs5zfUKof WBWOFT8xkriFhrYDWV7rJLjv9boOWuBa2pIHUvJeqXVMMzT2WrxSZAD+ToZqKGk4+giY u6Jg== 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=dWcteTAQ7hXmrQ/Yt/89trOBQ4opQVJyI+I3aO5onBk=; b=BudwbJtBTB7r2Di7g6WoxjGyQJbq5x2TAzqSzKyGy1rZJCWxuRqJsAZrFCeww43Zk0 /jx7ri3XWtC7B7V4GgzLmb5Yo2sBVvoyvmb2M+0e26ga6EvPUZzr4Lo6P4gmTn7SR4Zm 6fzC/iiLMEMqndXK+44EEwjduRCth8FsRtIK4BmYYNDqbjzIbQpadqhPl6Kz9vbbyVyG g2z/9z0950bG1xWHXSFYIdg7ENeXgHuk8c/gkagJBHtxioQYnOu/yp/O1pZiT1n2UGOM Zs7tgFVl5i0fmnA3op5BAqcSAf9ntrz1Xx7M8GXWlr/96Xy70g1KppNNRRe7Lk1C6NGz 0Yfw== X-Gm-Message-State: AOAM5339fxHvqQoDcMNbUkZJAZVeAnek3VS8tc+H3Kr5jS4D6hDVsQiz 6mPxBPrWXbw75FQYjuOc/MryZjn84G7XTA== X-Google-Smtp-Source: ABdhPJysnALgzaMikmliQCLm/WiqJcBTEhwID0jVQv4Bc6KB2yT5FgY6uCpazNmLTPAHzslXJCYeZw== X-Received: by 2002:a19:b46:: with SMTP id 67mr2671577lfl.488.1606467891808; Fri, 27 Nov 2020 01:04:51 -0800 (PST) Received: from localhost.localdomain ([136.49.211.192]) by smtp.gmail.com with ESMTPSA id g2sm880675lja.87.2020.11.27.01.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 01:04:51 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org Cc: Patrick Steinhardt , Daniel Kiper , Glenn Washburn Subject: [PATCH v6 10/12] mips: Enable __clzdi2() Date: Fri, 27 Nov 2020 03:03:42 -0600 Message-Id: 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=2a00:1450:4864:20::141; envelope-from=development@efficientek.com; helo=mail-lf1-x141.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: Fri, 27 Nov 2020 09:04:55 -0000 This patch is similiar to commit 9dab2f51e (sparc: Enable __clzsi2() and __clzdi2()) but for MIPS target and __clzdi2 only, __clzsi2 was already enabled. Signed-off-by: Daniel Kiper --- 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