An exception occured while adding codes to crt.S


(缎带红绸) #1

Before jump to main program, I add some codes in crt.S file.

.equ cons0, 0x1048901
li x31, cons0
csrw pmpcfg0, x31
li x31, 0
j main

The core enters an exception.
The mcause register is 1, meaning instruction access fault.