Skip to content

Commit 0d26ca8

Browse files
committed
LoongArch: Remove redundant code in head.S
SETUP_MODES already setup the initial values of CSR.CRMD, CSR.PRMD and CSR.EUEN, so the redundant open code can be removed. Fixes: 7b2afea ("LoongArch: Adjust boot & setup for 32BIT/64BIT") Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 0f61b18 commit 0d26ca8

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

arch/loongarch/kernel/head.S

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,6 @@ SYM_CODE_START(smpboot_entry)
126126
LONG_LI t1, CSR_STFILL
127127
csrxchg t0, t1, LOONGARCH_CSR_IMPCTL1
128128
#endif
129-
/* Enable PG */
130-
li.w t0, 0xb0 # PLV=0, IE=0, PG=1
131-
csrwr t0, LOONGARCH_CSR_CRMD
132-
li.w t0, 0x04 # PLV=0, PIE=1, PWE=0
133-
csrwr t0, LOONGARCH_CSR_PRMD
134-
li.w t0, 0x00 # FPE=0, SXE=0, ASXE=0, BTE=0
135-
csrwr t0, LOONGARCH_CSR_EUEN
136-
137129
la.pcrel t0, cpuboot_data
138130
ld.d sp, t0, CPU_BOOT_STACK
139131
ld.d tp, t0, CPU_BOOT_TINFO

0 commit comments

Comments
 (0)