adds signature to start of firmware
This commit is contained in:
parent
d621264ef7
commit
46d55f353e
|
@ -7,12 +7,17 @@
|
||||||
_start:
|
_start:
|
||||||
.option push
|
.option push
|
||||||
.option norelax
|
.option norelax
|
||||||
la gp, trap_entry
|
.option norvc
|
||||||
csrw mtvec, gp
|
j 1f
|
||||||
|
.2byte 0x4e4d
|
||||||
|
.2byte 0x5352
|
||||||
|
.4byte 0x669
|
||||||
|
1:
|
||||||
la gp, __global_pointer$
|
la gp, __global_pointer$
|
||||||
.option pop
|
.option pop
|
||||||
la sp, _sp
|
la sp, _sp
|
||||||
|
la t0, trap_entry
|
||||||
|
csrw mtvec, t0
|
||||||
/* Load data section */
|
/* Load data section */
|
||||||
la a0, _data_lma
|
la a0, _data_lma
|
||||||
la a1, _data
|
la a1, _data
|
||||||
|
|
Loading…
Reference in New Issue