Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp467121imm; Wed, 26 Sep 2018 01:33:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV61bAe1raXG6dG76b7Ec4cAs5jKH/5ahD9cGebVIrJdSrIZwnuV68s7EHQEUnBKuieAkFhBU X-Received: by 2002:a62:6a01:: with SMTP id f1-v6mr5124028pfc.156.1537950814160; Wed, 26 Sep 2018 01:33:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537950814; cv=none; d=google.com; s=arc-20160816; b=lL6a7LSrXEwF6wfb6Bu7nrdsuh7qpicT76ZFFlKC4eds4ife3hnPxyXgfbpBcAlPhJ 3QjAj+CmpT8ng8kwn8EvfMeNgUfY/55e9yNAO37oqUosdLFyj0bui8S62F9+7SJsSpyY ZpThiU9rqTAE8qP2q/hw9f1X8PkXW4N15AJyJcYoVurAPVCsDYmLAsNGHiw0DfsBJYph cSt1WinIRr/1BWzBarxFQyQl4mIJnbcBeddNWydnGx96i32XGweMjhzs72G5n6hHLkWq nuVXhrKLPMrwq+Lz+6yxjp2bv8a0hap6Prep9AU8bjLSX16gmffXGYmwWiPtE8zrjup3 sm+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=MO7664pAV2ldFdH0JaoDq4/TZtmoHdXkovT5pjpOKjc=; b=WLHCKtyLBUPdSdK2r7P3rVfWCAYtWetFpDGHbfzdQCUMhlZ9D8s9Gkp0X4uaAeab4d mH1VorwppFe3E3NZWOUrQ5b85wPinXS+F6Lh1zSzIRlyj9kV/NvI7uh8hLUPeo/Du9wz XHaG83wjzxQM2cAGbf9wFjNrb8r3PRqJuZAuyIKulG+O+j0Kcn3YRt7nPgnf103gAFcz lRtFM4mt+vD3ZfWEZSyAuUl7yzIYSQ9CY8ex4IfdDGEI3X/xCcv9inRMfV7iUjT/ZSMy Vr0UjWbTWsGtMw+6p9Wm+6rrbLd2p+1+kiGm3kGV8RAKwNN6TPeW8DgwzyBOUg152hMF v/ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vZEHEoRS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si4570864pgb.107.2018.09.26.01.33.18; Wed, 26 Sep 2018 01:33:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vZEHEoRS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726704AbeIZOop (ORCPT + 99 others); Wed, 26 Sep 2018 10:44:45 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:38772 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbeIZOop (ORCPT ); Wed, 26 Sep 2018 10:44:45 -0400 Received: by mail-pg1-f193.google.com with SMTP id r77-v6so8430764pgr.5 for ; Wed, 26 Sep 2018 01:32:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=MO7664pAV2ldFdH0JaoDq4/TZtmoHdXkovT5pjpOKjc=; b=vZEHEoRSKUi1UeC73MMcyVmTtLY2W292HV02GtVgQAASQNs1+o2bkZudMwaHin9MnW 8ZklOoVg6UtAWb+XAOLwwvjjTRzMtOYQF4urGSoUAp7q2KnCql9e5/snUXIZpSunrCNG VWQuIeuy0X+AkHwadhb4h0iflcCt9xXo+obMmQzDStpUC46kBwtorfewm7f6SammPzJV jpn/WoaT0rXVF8HWQi3H7UJFXevXyRWexdoor2yORbMYJ9EIq1PQch7yPp7SG0qoAsoI jVDfCCao34e1XS6o2+SY7NDegr/eP5+WvjsxrZooOj43p8xmIeGJ7ZIjLCxARzCnwUse ukOA== 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; bh=MO7664pAV2ldFdH0JaoDq4/TZtmoHdXkovT5pjpOKjc=; b=asHiDeUKHDaKEQzwKtcbAN3G+KQTYOLwr1LXZhABootM1bFcGVI8SFgqfl4ksbw/1j MlHRwe6wscogeqGkP5PdclEY66LMSZxjiUKNeXT5mVgTyztuvWvMjZj77ZhUkfvEPxqc QKOloqnE04fRB7OMsMHAjh+5+h0MoJtq8EIvkeID7x1w//9RLa9iL8/vzW1Jndjpc9LZ YO1jkMIfaUPYSvIuJrWv1E10P/RkKoUuGzNpL9nKadeYF5vO/7+xCW3c8+hlUDbXY+X5 zeuEUN/nsr4jIA87U+TeK+JxW4DO5ir5fC8aEox5hU82Q6NdBlb8IQa8Fjt3Aefngn2P /u1g== X-Gm-Message-State: ABuFfohPfqqh2wo2CFp7IRe1Us1qI41oLy6K5dajJcDoZZ2j69vSIuqD x/oD9NnbJtndOgNBK0PGKAU= X-Received: by 2002:a63:d645:: with SMTP id d5-v6mr4628381pgj.450.1537950777504; Wed, 26 Sep 2018 01:32:57 -0700 (PDT) Received: from app09.andestech.com ([118.163.51.199]) by smtp.gmail.com with ESMTPSA id f15-v6sm5530764pgv.66.2018.09.26.01.32.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Sep 2018 01:32:57 -0700 (PDT) From: Zong Li To: palmer@sifive.com, aou@eecs.berkeley.edu Cc: hch@infradead.org, zong@andestech.com, vincentc@andestech.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Zong Li Subject: [PATCH v2 0/5] Fix some bugs on RV32 build fail and issue Date: Wed, 26 Sep 2018 16:31:09 +0800 Message-Id: X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patches contain the modificaion as follows: 1. Fix up the building fail on RV32. 2. Add umoddi3 and udivmoddi4 functions for RV32. 3. Fix ioremap problem on RV32. Changes in v2: - Retain the copyright notices from libgcc in umoddi3.c and udivmoddi4.c. Vincent Chen (1): RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap Zong Li (4): RISC-V: Build tishift only on 64-bit RISC-V: Use swiotlb on RV64 only lib: Add umoddi3 and udivmoddi4 of GCC library routines RISC-V: Select GENERIC_LIB_UMODDI3 on RV32 arch/riscv/Kconfig | 1 + arch/riscv/kernel/setup.c | 3 + arch/riscv/lib/Makefile | 3 +- arch/riscv/mm/ioremap.c | 2 +- lib/Kconfig | 3 + lib/Makefile | 1 + lib/udivmoddi4.c | 309 ++++++++++++++++++++++++++++++++++++++++++++++ lib/umoddi3.c | 34 +++++ 8 files changed, 354 insertions(+), 2 deletions(-) create mode 100644 lib/udivmoddi4.c create mode 100644 lib/umoddi3.c -- 2.7.4