From patchwork Fri Apr 27 15:08:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 905807 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=none (p=none dis=none) header.from=nexus-software.ie Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nexus-software-ie.20150623.gappssmtp.com header.i=@nexus-software-ie.20150623.gappssmtp.com header.b="vRHgXth9"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40XcsL5lv4z9s02 for ; Sat, 28 Apr 2018 01:13:58 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 831A1C221BB; Fri, 27 Apr 2018 15:10:08 +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=RCVD_IN_MSPIKE_H2, 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 9FABEC22193; Fri, 27 Apr 2018 15:09:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 61241C221C5; Fri, 27 Apr 2018 15:08:58 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by lists.denx.de (Postfix) with ESMTPS id 260E9C221B6 for ; Fri, 27 Apr 2018 15:08:55 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id m70so2864889wma.2 for ; Fri, 27 Apr 2018 08:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nexus-software-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IeIx0Aofd2Tu3Z2pwjNPTakJPmCIq9PwKes5fSe2Hp4=; b=vRHgXth92iuCnSvnekFxCrG+sIuHR2KLyZ1VDPvBVDaq7M9RhTVCEUW/z9JMqPrPqo ZIODAJB8G0UeXGqiuBfhJFIYT+sCksQjj0DJZLP9iFcxds7EtB/bt84XclzzQejKV0Jd DPCdpNYwGkOTfNZxFm/gSIuRjQahgcAFf3WCGB+3NX32631CygF/2FOIHympM54W/aGS LbHLvep6p4EAAdLGJp8aeKwNRkCpy23aorS2NiqJnK4PVeOUml6CofPBhYvODS2RK8yG ZSVSQ5Upz8ZG4ghnE1wk8jMQa3FQOq3XpFAWhR8ako4rCEDMjk0gXzUZVECIMy42lzZ4 VEjg== 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=IeIx0Aofd2Tu3Z2pwjNPTakJPmCIq9PwKes5fSe2Hp4=; b=ehLrUZfin77gw6Hn580XN/4AukpZ9WaHTuHCOi029rOJCVLxebGbTmhpgj8nSFPU3k MNYJ+3cS0NkT6ebEmXZXAM+Y5Oal3NGdut6wXIfr3P9wl3EJbWBw0o7bt6KL5MrJxfJN UplbVHAMAIXLoBZj/wlYjbYcMYG0BaE1FoFz6DH1Wxek0PaoiSMe9YFm3e4k7kexpYgX MfbdUfZ1T3WHSXmuui6Mr8oaYcEy6BWADpF0MX/oVJ4jcEJOPkOJN0nujWbZjlDjtHSC uEPTVGPEBotzjsHAG3DaOlItAnHnFGiPWSd7dXf55szSbT3aN+qGCQ6RRdSz2lR97GBw TmtA== X-Gm-Message-State: ALQs6tDDMvJPFzXQ/URjShdysWwLT7N5Bkw02zqUEx7ahMIppvGHKlhH JyzbSw85U69Zu12GIKJACixsoJ3P X-Google-Smtp-Source: AB8JxZpKUVVQUwn5AMzOsbSn9wuXtWKzJ08BPBXw5joWY0T0CY+5ftTeOUFgTTJyeB7AVUEytaTcCA== X-Received: by 2002:aa7:d7c4:: with SMTP id e4-v6mr3889308eds.83.1524841734525; Fri, 27 Apr 2018 08:08:54 -0700 (PDT) Received: from event-horizon.net ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id d17-v6sm1041063ede.65.2018.04.27.08.08.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Apr 2018 08:08:52 -0700 (PDT) From: Bryan O'Donoghue To: u-boot@lists.denx.de Date: Fri, 27 Apr 2018 16:08:41 +0100 Message-Id: <20180427150848.12075-3-pure.logic@nexus-software.ie> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180427150848.12075-1-pure.logic@nexus-software.ie> References: <20180427150848.12075-1-pure.logic@nexus-software.ie> Cc: Greentime Hu Subject: [U-Boot] [PATCH 2/9] riscv: Define PLATFORM__SET_BIT for generic_set_bit() 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" riscv bitops.h provides a __set_bit() but does not define PLATFORM__SET_BIT as a result generic_set_bit() is used instead of the architecturally provided __set_bit(). Hook the arch __set_bit() now. Signed-off-by: Bryan O'Donoghue Cc: Rick Chen Cc: Greentime Hu --- arch/riscv/include/asm/bitops.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/riscv/include/asm/bitops.h b/arch/riscv/include/asm/bitops.h index 55d420fdfb..0149e5c696 100644 --- a/arch/riscv/include/asm/bitops.h +++ b/arch/riscv/include/asm/bitops.h @@ -42,6 +42,8 @@ static inline void __set_bit(int nr, void *addr) *a |= mask; } +#define PLATFORM__SET_BIT + static inline void __clear_bit(int nr, void *addr) { int *a = (int *)addr;