|
24 | 24 | * structure that is initialized once at DSP boot time. All elements |
25 | 25 | * in bellow example are 32-bit unsigned integers: |
26 | 26 | * |
27 | | - * -------------------------------------------------- --- |
28 | | - * | id = DEBUG_STREAM_IDENTIFIER | | |
29 | | - * | total_size = 4096 | 64 bytes |
30 | | - * | num_sections = CONFIG_MP_MAX_NUM_CPUS * | | |
31 | | - * | <padding> | | |
32 | | - * -------------------------------------------------- --- |
33 | | - * | section_descriptor [] = { | | |
34 | | - * | { | | |
35 | | - * | core_id = 0 | | |
36 | | - * | size = 1344 | 64 bytes |
37 | | - * | offset = 64 | | |
38 | | - * | } | | |
39 | | - * | <padding> | | |
40 | | - * -------------------------------------------------- --- |
41 | | - * | { | | |
42 | | - * | core_id = 1 | | |
43 | | - * | size = 1344 | 64 bytes |
44 | | - * | offset = 1344+64 | | |
45 | | - * | } | | |
46 | | - * | <padding> | | |
47 | | - * -------------------------------------------------- --- |
48 | | - * | { | | |
49 | | - * | core_id = 2 | | |
50 | | - * | size = 1344 | 64 bytes |
51 | | - * | offset = 2*1344+64 | | |
52 | | - * | } | | |
53 | | - * | } | | |
54 | | - * | <padding> | | |
55 | | - * -------------------------------------------------- --- |
| 27 | + * -------------------------------------------------- |
| 28 | + * | id = DEBUG_STREAM_IDENTIFIER | |
| 29 | + * | total_size = 4096 | |
| 30 | + * | num_sections = CONFIG_MP_MAX_NUM_CPUS * | |
| 31 | + * | section_descriptor [] = { | |
| 32 | + * | { | |
| 33 | + * | core_id = 0 | |
| 34 | + * | size = 1344 | |
| 35 | + * | offset = 64 | |
| 36 | + * | } | |
| 37 | + * | { | |
| 38 | + * | core_id = 1 | |
| 39 | + * | size = 1344 | |
| 40 | + * | offset = 1344+64 | |
| 41 | + * | } | |
| 42 | + * | { | |
| 43 | + * | core_id = 2 | |
| 44 | + * | size = 1344 | |
| 45 | + * | offset = 2*1344+64 | |
| 46 | + * | } | |
| 47 | + * | } | |
| 48 | + * | <padding> | |
| 49 | + * -------------------------------------------------- n * 64 bytes |
56 | 50 | * * CONFIG_MP_MAX_NUM_CPUS is 3 in this example |
57 | 51 | * |
58 | 52 | * The header contains generic information like identifier, total |
59 | 53 | * size, and number of sections. After the generic fields there is an |
60 | | - * array of section descriptors. Each array element is cacheline |
61 | | - * aligned. The array has 'num_sections' number of elements. Each |
62 | | - * element in the array describes a circular buffer, one for each DSP |
63 | | - * core. |
| 54 | + * array of section descriptors. The array has 'num_sections' number |
| 55 | + * of elements. Each element in the array describes a circular buffer, |
| 56 | + * one for each DSP core. |
64 | 57 | * |
65 | 58 | * The remaining memory in the debug window slot is divided between |
66 | 59 | * those sections. The buffers are not necessarily of equal size, like |
|
82 | 75 | * The debug stream writes the records of abstract data to the |
83 | 76 | * circular buffer, and updates the w_ptr when the record is |
84 | 77 | * completely written. The host side receiver tries to keep up with the |
85 | | - * w_ptr and keeps track of its read position. The size of the record |
86 | | - * is written - again - after each record and before the next. This is |
87 | | - * to allow parsing the stream backwards in an overrun recovery |
88 | | - * situation. The w_ptr value is updated last, when the record is |
89 | | - * completely written. |
| 78 | + * w_ptr and keeps track of its read position. |
| 79 | + * |
| 80 | + * The size of the record is written - again - after each record and |
| 81 | + * before the next. This is to allow parsing the stream backwards in |
| 82 | + * an overrun recovery situation. The w_ptr value is updated last, |
| 83 | + * when the record is completely written. |
90 | 84 | */ |
91 | 85 |
|
92 | 86 | #include <stdint.h> |
|
0 commit comments