From: Zong Li <zongbox@gmail.com>
To: green.hu@gmail.com, deanbo422@gmail.com, linux-kernel@vger.kernel.org
Cc: greentime@andestech.com, Zong Li <zongbox@gmail.com>,
Zong Li <zong@andestech.com>
Subject: [PATCH 1/2] nds32: Remove the redundant assignment
Date: Wed, 17 Oct 2018 21:15:51 +0800 [thread overview]
Message-ID: <eccb279777573bea97149e7810b7827a53747095.1539781832.git.zongbox@gmail.com> (raw)
In-Reply-To: <cover.1539781832.git.zongbox@gmail.com>
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 <zong@andestech.com>
---
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
next prev parent reply other threads:[~2018-10-17 13:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-17 13:15 [PATCH 0/2] Remove the no longer used mechanism Zong Li
2018-10-17 13:15 ` Zong Li [this message]
2018-10-17 13:15 ` [PATCH 2/2] nds32: Fill all TLB entries with kernel image mapping Zong Li
2018-10-17 14:42 ` [PATCH 0/2] Remove the no longer used mechanism Greentime Hu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eccb279777573bea97149e7810b7827a53747095.1539781832.git.zongbox@gmail.com \
--to=zongbox@gmail.com \
--cc=deanbo422@gmail.com \
--cc=green.hu@gmail.com \
--cc=greentime@andestech.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zong@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).