projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f61b18
)
LoongArch: Remove redundant code in head.S
author
Huacai Chen
<chenhuacai@loongson.cn>
Thu, 15 Jan 2026 10:50:48 +0000
(18:50 +0800)
committer
Huacai Chen
<chenhuacai@loongson.cn>
Thu, 15 Jan 2026 10:50:48 +0000
(18:50 +0800)
SETUP_MODES already setup the initial values of CSR.CRMD, CSR.PRMD and
CSR.EUEN, so the redundant open code can be removed.
Fixes:
7b2afeafaf9c2d5
("LoongArch: Adjust boot & setup for 32BIT/64BIT")
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/head.S
patch
|
blob
|
history
diff --git
a/arch/loongarch/kernel/head.S
b/arch/loongarch/kernel/head.S
index
7f288e8
..
4eed7bc
100644
(file)
--- a/
arch/loongarch/kernel/head.S
+++ b/
arch/loongarch/kernel/head.S
@@
-126,14
+126,6
@@
SYM_CODE_START(smpboot_entry)
LONG_LI t1, CSR_STFILL
csrxchg t0, t1, LOONGARCH_CSR_IMPCTL1
#endif
- /* Enable PG */
- li.w t0, 0xb0 # PLV=0, IE=0, PG=1
- csrwr t0, LOONGARCH_CSR_CRMD
- li.w t0, 0x04 # PLV=0, PIE=1, PWE=0
- csrwr t0, LOONGARCH_CSR_PRMD
- li.w t0, 0x00 # FPE=0, SXE=0, ASXE=0, BTE=0
- csrwr t0, LOONGARCH_CSR_EUEN
-
la.pcrel t0, cpuboot_data
ld.d sp, t0, CPU_BOOT_STACK
ld.d tp, t0, CPU_BOOT_TINFO