Received: by 10.192.165.148 with SMTP id m20csp2750156imm; Sun, 6 May 2018 23:55:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpUZyHDHPf+s8K0nVA17IrSYYzRyfJsR+mcEmsq6Pa3zc7FRDd7mXqkldSe3tPgniDhcrqt X-Received: by 2002:a17:902:6181:: with SMTP id u1-v6mr36416442plj.272.1525676144495; Sun, 06 May 2018 23:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525676144; cv=none; d=google.com; s=arc-20160816; b=IAeO0tQHDboroeZhfF+1dRzS2vkLupmTwHVqDp2a4SI9ltDJvExp1wUJak4VkjE4X0 synBHFxUDQNIhIP6AcNZIoFY/JSU/51OobqM+7j6x4Zc38uQn4ozBJP0lzr7DPmSEUU0 GZXqHAYYFRphZJ1g0j1XBNcTYCM05eqYf36M9+RkpaW/Jig+kTtHYmuaATfkpmZiedTM L7tptTQg5QUFfCb0G2qK2JfFSnX14H4AEI1OSJDDOSg7El9oQJ+Gbgsd5qsSp5i20hIb uXcyWC3T9751wuX9fmKZ8eMCESZRxVs70AlM2uyUypNjypuUdXHrPLpYyXGJCZ3QDNJv q+OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=zo43ZjAGRFIOwrrh7EEzSKafVpVJVU1g3gcXq5PPfjQ=; b=bwKQWVf7WKzs1PkUNpApKERVpKzjUS79nJUqI+h5VenrXJyCbqMXq2Gh20g5IwX1jQ DVdmwEASjWXX1lpylCM2fifvVFseHiUv4rwkFJ7WhlLhbZKxN+tpoufu8+mqp31fGU4Y fxjea9cIMklXm4GeYkjmhUjloAoa0HB+5EPOuQ5S/BcRJZ80v6ofZue3WpgwSKmNa2qS 2waeNm62fqNvTtYqa+Toasu7h7B5m8o+wBozCJOXAf1Iw3/0rK0uRsv8XafsrntY486R FEBP/rwoTppsJYBpcuVU1dsDE5CIJWHPdplWDzCbKHVKWxSvZoHq2Xh95yI0W2Fb36YV TFrw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a100-v6si21578398pli.588.2018.05.06.23.55.30; Sun, 06 May 2018 23:55:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751918AbeEGGyd (ORCPT + 99 others); Mon, 7 May 2018 02:54:33 -0400 Received: from exmail.andestech.com ([59.124.169.137]:61106 "EHLO ATCSQR.andestech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751884AbeEGGyc (ORCPT ); Mon, 7 May 2018 02:54:32 -0400 X-Greylist: delayed 542 seconds by postgrey-1.27 at vger.kernel.org; Mon, 07 May 2018 02:54:32 EDT Received: from ATCSQR.andestech.com (localhost [127.0.0.2] (may be forged)) by ATCSQR.andestech.com with ESMTP id w476bb8U068191 for ; Mon, 7 May 2018 14:37:37 +0800 (GMT-8) (envelope-from nickhu@andestech.com) Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id w476bJiI068160; Mon, 7 May 2018 14:37:19 +0800 (GMT-8) (envelope-from nickhu@andestech.com) Received: from atcsqa06.andestech.com (10.0.1.85) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Mon, 7 May 2018 14:45:08 +0800 From: Nickhu To: , , , , CC: Nickhu Subject: [PATCH 0/2] nds32:Renaming file and fixing the unaligned access handler Date: Mon, 7 May 2018 14:45:00 +0800 Message-ID: X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.1.85] X-DNSRBL: X-MAIL: ATCSQR.andestech.com w476bJiI068160 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The name of /proc/sys/nds32/unaligned_acess spelled wrong, so we renaming it to /proc/sys/nds32/unaligned_access. The unaligned access handler in nds32 goes wrong when the immediate field of load/store instruction is negative. We fix it by recongnizing whether the immediate field is positive or negative and then change the value of immediate filed to unsigned integer number. Nickhu (2): nds32: Renaming the file for unaligned access nds32: Fix the unaligned access handler arch/nds32/mm/alignment.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.17.0