From 46d55f353e84f8c71a63c04459952d5ea1a92fae Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sun, 11 Aug 2024 17:29:13 +0200 Subject: [PATCH] adds signature to start of firmware --- env/start.S | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/env/start.S b/env/start.S index 33b691b..0df91a6 100644 --- a/env/start.S +++ b/env/start.S @@ -7,12 +7,17 @@ _start: .option push .option norelax - la gp, trap_entry - csrw mtvec, gp +.option norvc + j 1f + .2byte 0x4e4d + .2byte 0x5352 + .4byte 0x669 +1: la gp, __global_pointer$ .option pop la sp, _sp - + la t0, trap_entry + csrw mtvec, t0 /* Load data section */ la a0, _data_lma la a1, _data