annotate gsm-fw/L1/dsp/leadboot.c @ 923:10b4bed10192

gsm-fw/L1: fix for the DSP patch corruption bug The L1 code we got from the LoCosto fw contains a feature for DSP CPU load measurement. This feature is a LoCosto-ism, i.e., not applicable to earlier DBB chips (Calypso) with their respective earlier DSP ROMs. Most of the code dealing with that feature is conditionalized as #if (DSP >= 38), but one spot was missed, and the MCU code was writing into an API word dealing with this feature. In TCS211 this DSP API word happens to be used by the DSP code patch, hence that write was corrupting the patched DSP code.
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 19 Oct 2015 17:13:56 +0000
parents 85562a6b6356
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
560
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 /*
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 * This module is from the LoCosto source, and the char array found herein
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3 * has been confirmed to match the one in the Leonardo binary lib as well.
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 */
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6 const unsigned char bootCode[] = {
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 /* Tag */ 0x00, 0x00, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9 /* Vers */ 0x03, 0x00, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 /* size */ 0x31, 0x00, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12 /* addr */ 0x00, 0xf8, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14 0xF8,0x69,0x29,0x00,0x02,0x00,0x1F,0xEA,0x14,0x77,0x00,0x00,0x7F,0x76,0x01,0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 0x7F,0x60,0x04,0x00,0x20,0xF8,0x10,0x01,0x14,0x72,0x00,0x08,0x7F,0x76,0x01,0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16 0x7F,0x60,0x02,0x00,0x20,0xF8,0x08,0x01,0x7E,0x12,0x7C,0x3C,0x7D,0x13,0x11,0x89,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 0x4C,0xF8,0x1D,0x01,0x30,0xF0,0xFF,0xFF,0xE2,0xF4,0x89,0x6D,0x12,0x77,0x00,0x08,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18 0xF8,0x11,0x14,0x00,0x4E,0xF8,0x29,0x01,0xF8,0x47,0x11,0x00,0x92,0x7F,0x73,0xF0,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
19 0x2D,0x01,0x13,0x88,0xF8,0x47,0x11,0x00,0x89,0xE5,0x7F,0x76,0x01,0x00,0x73,0xF0,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20 0x08,0x01,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
21
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22 /* size */ 0x29, 0x00, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 /* addr */ 0x00, 0xfe, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25 0x18,0x77,0x80,0x07,0xF8,0x69,0x1D,0x00,0x28,0x00,0x28,0x77,0x92,0x24,0xF8,0x76,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26 0x11,0x00,0x01,0x00,0xF8,0x75,0x11,0x00,0x00,0xF9,0x06,0x77,0x00,0x18,0x07,0x77,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
27 0x00,0x2D,0x26,0x77,0x10,0x00,0x00,0x77,0x00,0x00,0x01,0x77,0xFF,0xFF,0x00,0xEA,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
28 0x95,0xF4,0x11,0x77,0x00,0x01,0x12,0x77,0x00,0xF8,0x20,0xF0,0x31,0xF8,0x12,0x08,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
29 0x10,0xF0,0x01,0x00,0x13,0x80,0x95,0xF4,0x13,0x47,0x91,0x7C,0x00,0xF8,0x73,0xF0,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
30 0x00,0x01,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
31
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
32 /* size */ 0x04, 0x00, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
33 /* addr */ 0x80, 0xff, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
34
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
35 0x73,0xF0,0x00,0xFE,0x95,0xF4,0x95,0xF4,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
36 /* Final record */
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
37 /* size */ 0x00, 0x00, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
38 /* addr */ 0x00, 0xf8, 0x00, 0x00,
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
39
85562a6b6356 gsm-fw/L1/dsp/leadboot.c: import from the LoCosto source
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
40 };