Rev 3829 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3829 | Rev 4030 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | 31 | ||
32 | #include "ofw.h" |
32 | #include "ofw.h" |
33 | 33 | ||
34 | #define TASKMAP_MAX_RECORDS 32 |
34 | #define TASKMAP_MAX_RECORDS 32 |
35 | 35 | ||
- | 36 | /** Size of buffer for storing task name in task_t. */ |
|
- | 37 | #define BOOTINFO_TASK_NAME_BUFLEN 32 |
|
- | 38 | ||
- | 39 | /** Struct holding information about single loaded task. */ |
|
36 | typedef struct { |
40 | typedef struct { |
- | 41 | /** Address where the task was placed. */ |
|
37 | void *addr; |
42 | void *addr; |
- | 43 | /** Size of the task's binary. */ |
|
38 | unsigned int size; |
44 | unsigned int size; |
- | 45 | /** Task name. */ |
|
- | 46 | char name[BOOTINFO_TASK_NAME_BUFLEN]; |
|
39 | } task_t; |
47 | } task_t; |
40 | 48 | ||
41 | typedef struct { |
49 | typedef struct { |
42 | unsigned int count; |
50 | unsigned int count; |
43 | task_t tasks[TASKMAP_MAX_RECORDS]; |
51 | task_t tasks[TASKMAP_MAX_RECORDS]; |