Rev 2349 | Rev 2412 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2349 | Rev 2356 | ||
---|---|---|---|
Line 44... | Line 44... | ||
44 | * @param addr Address or number to be aligned. |
44 | * @param addr Address or number to be aligned. |
45 | * @param align Size of alignment, must be power of 2. |
45 | * @param align Size of alignment, must be power of 2. |
46 | */ |
46 | */ |
47 | #define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1)) |
47 | #define ALIGN_UP(addr, align) (((addr) + ((align) - 1)) & ~((align) - 1)) |
48 | 48 | ||
49 | /** Maximum number of tasks in the #bootinfo_t structure. */ |
49 | /** Maximum number of tasks in the #bootinfo_t struct. */ |
50 | #define TASKMAP_MAX_RECORDS 32 |
50 | #define TASKMAP_MAX_RECORDS 32 |
51 | 51 | ||
52 | 52 | ||
53 | /** Structure holding information about single loaded task. */ |
53 | /** Struct holding information about single loaded task. */ |
54 | typedef struct { |
54 | typedef struct { |
55 | /** Address where the task was placed. */ |
55 | /** Address where the task was placed. */ |
56 | void *addr; |
56 | void *addr; |
57 | /** Size of the task binary. */ |
57 | /** Size of the task's binary. */ |
58 | unsigned int size; |
58 | unsigned int size; |
59 | } task_t; |
59 | } task_t; |
60 | 60 | ||
61 | 61 | ||
62 | /** Structure holding information about loaded tasks. */ |
62 | /** Struct holding information about loaded tasks. */ |
63 | typedef struct { |
63 | typedef struct { |
64 | /** Number of loaded tasks. */ |
64 | /** Number of loaded tasks. */ |
65 | unsigned int cnt; |
65 | unsigned int cnt; |
66 | /** Array of loaded tasks. */ |
66 | /** Array of loaded tasks. */ |
67 | task_t tasks[TASKMAP_MAX_RECORDS]; |
67 | task_t tasks[TASKMAP_MAX_RECORDS]; |