Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp652067imm; Wed, 17 Oct 2018 06:18:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV63sxwzCTiJ89xKqnVyGvArFD0YXQnm5UrLfF7Zo7LOYgcJVQqPckG2qwV+ZgCW8Y8oW91pI X-Received: by 2002:a62:384c:: with SMTP id f73-v6mr26461466pfa.242.1539782328736; Wed, 17 Oct 2018 06:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539782328; cv=none; d=google.com; s=arc-20160816; b=og8sJHDidG064dpWcfeh9tayKQLyoT7KmHId4ad+C4E/LvCaaJaeBxdLMDgMYZAmDy ph+ji3qI+M3QuWbUoJrkmljIe2gIm6BV1+CEAQp97ozW0vIuz7L4vvywK/xCS38v2h+l VubZGV9Gmug0F1QPQcsgVvaAtSYshoYTYj0CUWVRVmhE0J+x7Jre1nHgsi2k5kOktc6e 7xCLxSypbaWHOumeYRVJKJkVlLJYBpsr5qR0eGwl4D2UdPJIzGIJ0MetyYFdPLlh5fIf h+DPHzaM9fUVe/RfAkuHX6QX2yvytWeMnt0KCww2hO1kOclR2gLayqd318Y2dMo+knDP sHAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=dzdia8kmFSoj0oVRVXr6qoItUBuOHOKpTtwWkuViUoA=; b=tn3yT2UW2sqgd0+XdpwobIHlR6s79vhuGeis+GRDzojrnpI6kRYGY2OMSeFvYEG0o6 FV9tzVb4SjrDRs/zj/ue7ubYJOuEOxIpiJxr3gC5Cl0fznAntvTsU3zkIjAm/tnBzNxC lxW9dDJ3eXjilamJKVk+2ptPVZmG0bGxBnJZZArqSouJzSE45GTaGvNkPQS6px6i7BtY 6pn9F8zzSSXA0ssOb+DhRXq1jmuPkk7krmszEeDyD/5VHgCSOkwAwoOWNEQ0xzZV4Bdx vvqO0PcW7U+b3tqeCqn9F+QoIzr4AsPpBPA7C/ahYbsSADikQvbniICmCs8xMiIX6Wi1 2z+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a2O8OMUJ; 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 p33-v6si18343050pld.57.2018.10.17.06.18.33; Wed, 17 Oct 2018 06:18:48 -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=a2O8OMUJ; 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 S1727304AbeJQVN0 (ORCPT + 99 others); Wed, 17 Oct 2018 17:13:26 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45404 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727016AbeJQVNY (ORCPT ); Wed, 17 Oct 2018 17:13:24 -0400 Received: by mail-pl1-f195.google.com with SMTP id y15-v6so12686456plr.12 for ; Wed, 17 Oct 2018 06:17:45 -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:in-reply-to:references; bh=dzdia8kmFSoj0oVRVXr6qoItUBuOHOKpTtwWkuViUoA=; b=a2O8OMUJLRydUdnM7jfPopqjwAFlsRH1W+rjIDjDSytJ2lJ7tGwXKleqBpAPBmPkPq Kfm7osu7PlFyTMbGqNtVzDMvvKE+ZVGNeQ/hbHQKzuSh+8/D5+P2y9Z0c0j5r2WN97Kk S0fLtbVAtmU8EVVXhQt6rXpQ6Unfom9CAFe+xpSfeyB/kuREb9auuKkPUeYoi36sFZwn RsnH7qisnRbTtSDpKrvp0uLGnTbt0CUifckmyC6Z36gvJbQJI0O7akaO0CHQIiVBZpdD rfZHzRRUq9rBWmKGGzicPJQzxgxbFp82PA2oXy+8iTorHO4HAFCt8qxt96znViE+A1i1 rgug== 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=dzdia8kmFSoj0oVRVXr6qoItUBuOHOKpTtwWkuViUoA=; b=r7Qfodq1KpHoJY8ylFLrhxAqFUQzvWCN8TJy/7nIgZTolCK+1Yc6YMdd9JyFaCievq V75naXN4kG09TL9P8ePC+ntsDPwIz67Yy7BviFD2COlNAgUTuNh/qrV/tr094G2NGUqe pPk4rD2SK6LaUxIyaCRUtB/t2fgGRWw4UGTP/CZb9TfNIyx3SRmA4a71hUmvZp/PeQ5C LN3wG2zd/LGR00tsB3QVS2Hpn9hlaxxCsiPhLERscGRdv61sIVsZ4RkMRqjYjgYOkVlu on/LAH8Sg1UmRlJqgb7GcQG/Ub8V/wMDt3PsiBN91RtAwxAw2Kfy07PMJPQF2RdB6uW5 TOnA== X-Gm-Message-State: ABuFfogiTePXOy3IRZY2hq8CiCsqykr3XFwTMqhlSXa5cy8Y7X7yjAVs VSvPUni2E27HvZXz7wkSYKEqO7wk X-Received: by 2002:a17:902:54d:: with SMTP id 71-v6mr18275506plf.80.1539782265118; Wed, 17 Oct 2018 06:17:45 -0700 (PDT) Received: from app09.andestech.com (59-120-53-16.HINET-IP.hinet.net. [59.120.53.16]) by smtp.gmail.com with ESMTPSA id l16-v6sm34943010pfj.179.2018.10.17.06.17.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Oct 2018 06:17:44 -0700 (PDT) From: Zong Li To: green.hu@gmail.com, deanbo422@gmail.com, linux-kernel@vger.kernel.org Cc: greentime@andestech.com, Zong Li , Zong Li Subject: [PATCH 1/2] nds32: Remove the redundant assignment Date: Wed, 17 Oct 2018 21:15:51 +0800 Message-Id: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For early version, the value of r2 register was used to display a character on UART when error occurred. Remove these r2 assignments because we no longer show the character. Signed-off-by: Zong Li --- arch/nds32/kernel/head.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/nds32/kernel/head.S b/arch/nds32/kernel/head.S index c5fdae1..1ce653d 100644 --- a/arch/nds32/kernel/head.S +++ b/arch/nds32/kernel/head.S @@ -130,14 +130,12 @@ _image_size_check: * * direct mapping is not supported now. */ - li $r2, 't' beqz $r6, __error ! MMU_CFG.TBW = 0 is direct mappin addi $r0, $r0, #0x2 ! MMU_CFG.TBS value -> meaning sll $r0, $r6, $r0 ! entries = k-way * n-set mul $r6, $r0, $r5 ! max size = entries * page size /* check kernel image size */ la $r3, (_end - PAGE_OFFSET) - li $r2, 's' bgt $r3, $r6, __error li $r2, #(PHYS_OFFSET + TLB_DATA_kernel_text_attr) -- 2.7.4