diff --git a/src/stub/l_armpet.S b/src/stub/l_armpet.S index b4e53362..f5df6dd0 100644 --- a/src/stub/l_armpet.S +++ b/src/stub/l_armpet.S @@ -36,7 +36,7 @@ .text 1; .long 0, bl##t - _start; .asciz #t; .long 0; \ .text 0; .byte 0, 0, 0; bl##t: .byte 0xf8 -#define DEBUG 0 +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ .text .balign 0 @@ -58,7 +58,7 @@ SECT(ExeStart): adr r3, SRC0 ldmia r3, {r5, r6, r7} @ r5=src0, r6=slen, r7=dst0, r3=addr src0 - add r5, r5, r6 + add r5, pc, #4096 .L01: ldr r6, [r7] add r7, r7, #4096 diff --git a/src/stub/l_armpet.h b/src/stub/l_armpet.h index 5c1a0045..19d8c8eb 100644 --- a/src/stub/l_armpet.h +++ b/src/stub/l_armpet.h @@ -28,12 +28,12 @@ #define NRV_LOADER_THUMB_SIZE 1004 -#define NRV_LOADER_THUMB_ADLER32 0x52485407 -#define NRV_LOADER_THUMB_CRC32 0x9ee02605 +#define NRV_LOADER_THUMB_ADLER32 0x937c5418 +#define NRV_LOADER_THUMB_CRC32 0x0ad93fb1 unsigned char nrv_loader_thumb[1004] = { 1, 0, 81,227, 11, 0, 0, 26,255, 67, 45,233, 44, 48,143,226, /* 0x 0 */ -224, 0,147,232, 6, 80,133,224, 0, 96,151,229, 1,122,135,226, /* 0x 10 */ +224, 0,147,232, 1, 90,143,226, 0, 96,151,229, 1,122,135,226, /* 0x 10 */ 5, 0, 87,225,251,255,255,154, 41,192,143,226, 15,224,160,225, /* 0x 20 */ 28,255, 47,225,255, 67,189,232, 16,192,159,229, 28,255, 47,225, /* 0x 30 */ 83, 82, 67, 48, 83, 82, 67, 76, 68, 83, 84, 48, 68, 83, 84, 76, /* 0x 40 */